6

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.

2 Answers 2

4

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

Sign up to request clarification or add additional context in comments.

2 Comments

Thanks, you know of any tutorials by chance?
The docs are pretty good and have a lot of examples. There is also this tutorial geared towards use with Django: arnebrodowski.de/blog/…. If you are familiar with Django, looking at Haystack's source would give you a good idea what you can do with it.
0

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

2 Comments

Did you mean to answer "PyLucene" instead?
Pure python would be preferred.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.