Hello-
I'm on ThinkingSphinx 3.0.1 and Sphinx 2.0.5.
I am trying to find a way to perform infix searches with exact matches
coming first. My index is simple:
ThinkingSphinx::Index.define :topic, with: :active_record do
indexes :name, sortable: true
end
For example, when I perform:
Topic.search("apple", enable_star: true)
It currently returns:
appleton
applevalleycalifornia
applevalleyminnesota
apple
applebees
I'd like "apple" to come first followed by whatever infix matches are most
relevant, but everything I try returns results before "apple" unless I
disable infix matching altogether.
Is this possible? I've read that I may have to create two indexes and have
one of them weighted over the other, but I'm not sure how to go about this
with the new index definition syntax.
Any help would be much appreciated!
-Jerod
--
You received this message because you are subscribed to the Google Groups
"Thinking Sphinx" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/thinking-sphinx?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.