Text search with partial sentence matching

138 views
Skip to first unread message

Alex

unread,
Jul 21, 2012, 6:45:04 PM7/21/12
to django...@googlegroups.com
Is it possible to allow partial match of a sentence? For example, if I search for 'ice cream', also get the results for 'ice' and 'cream' (i.e. "ice OR cream")
So far I couldn't get any straightforward way to do it.

Thanks!

Dave Hall

unread,
Jul 22, 2012, 6:23:27 AM7/22/12
to django...@googlegroups.com
That depends on the search backed you're using. Watson's behaviour is to try to make all backends behave close to word-based search, rather than phrase-based search, since that's what most naive users would expect, and can be supported on all backends.

If you want behaviour beyond this, I'd recommend choosing the Postgres backend, then looking through the Watson source for a way to bolt your functionality on.
--
You received this message because you are subscribed to the Google Groups "django-watson discussion group" group.
To view this discussion on the web, visit https://groups.google.com/d/msg/django-watson/-/E-Xq5QZndk4J.
To post to this group, send an email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-watso...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-watson?hl=en-GB.

Alex

unread,
Jul 22, 2012, 12:28:38 PM7/22/12
to django...@googlegroups.com
I tried to use Postgres backend but it seems it does not work with Heroku (Heroku does not like make_plpgsql function).
Thank you anyways :)
Reply all
Reply to author
Forward
0 new messages