|search for part of the word||Vitaliy||3/5/10 7:45 AM|
How can I configure whoosh so it can search for part of the word?
f.e. I have document with word "chicken" in it
And I want to be able to find it with such queries:
|Re: [Whoosh] search for part of the word||Matt Chaput||3/5/10 10:35 AM|
Check out the Wildcard query object.
>>> q1 = query.Wildcard("fieldname", u"chick*")
The default query parser (whoosh.qparser.QueryParser) will produce
>>> qp = qparser.QueryParser("fieldname", schema=myschema)
Note that queries that match the middle or end of a word will be slower