how to use proximity search?

18 views
Skip to first unread message

KC

unread,
Nov 16, 2009, 7:31:45 PM11/16/09
to Sunspot
I read here that proximity search was added in 10.6 but not really
sure how to use it. Can someone please elaborate on this?

http://outoftime.lighthouseapp.com/projects/20339/tickets/32-patch-add-support-for-proximity-search

Thanks

Mat Brown

unread,
Nov 16, 2009, 7:59:40 PM11/16/09
to ruby-s...@googlegroups.com
Howdy,

The patch in that ticket was not merged into Sunspot, for the reasons
I elaborated upon in my comment. However, Sunspot 0.10.6 does add
support for phrase slop and query phrase slop, which are the DisMax
query parser's implementation of proximity search. You can read about
those methods here (query_phrase_slop is also available as an option
to the fulltext() method):

http://outoftime.github.com/sunspot/docs/classes/Sunspot/DSL/Fulltext.html#M000049

Mat
Reply all
Reply to author
Forward
0 new messages