开发者

Advanced python string search

开发者 https://www.devze.com 2023-03-30 05:34 出处:网络
I was wondering if anyone can point me to a library that can search a string using google-ish syntax. Examples:

I was wondering if anyone can point me to a library that can search a string using google-ish syntax. Examples:

Google advanced search syntax

Craigslist advanced search syntax

So if the 开发者_StackOverflow中文版query were

food -pizza

and the search subject was

Ray's Pizza, best food in town!

It would not result in a match. Etc etc.


Whoosh is really great fast, full-text search engine written in Python, it has a nice API and nice documentation.


Does it has to be Python? Because Lucene would be perfect otherwise.

0

精彩评论

暂无评论...
验证码 换一张
取 消