Mike
Mike

Reputation: 1914

Advanced python string search

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 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.

Upvotes: 6

Views: 1874

Answers (2)

Zach Kelling
Zach Kelling

Reputation: 53879

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

Upvotes: 4

Michael Lorton
Michael Lorton

Reputation: 44436

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

Upvotes: 0

Related Questions