Django's documentation for the PostgreSQL full text search uses the following example:
>>> Entry.objects.filter(body_text__search='Cheese')
[<Entry: Cheese on Toast recipes>, <Entry: Pizza Recipes>]
I would like to use this, but to get the same results by searching for only part of the word. Currently this results in no results:
>>> Entry.objects.filter(body_text__search='Chee')
[]
Basically I would like to get the same results that I would get using body_text__icontains
. I would like to use full text search so that after I get this working I can take advantage of things such as reusable search vectors, weighting queries and ranking.
Is there some way to get results with partial word queries?