hello pat, Thank you for the response.
yeah i figured that after posting this message :) I took a different approach. Searched for "potatoes tomatoes" and "potatoes" and then "tomatoes" separately and joined the results together. Slows down the program but getting very close to the desired results. This would have been a killer feature, don't know how sphinx team missed it. regards madhu On Mar 27, 10:08 pm, Pat Allan <[email protected]> wrote: > Unfortunately, Sphinx doesn't have the ability to weight specific words > higher - only indexes and fields. > > It's possible that there's some complex hacks around this - put certain words > in an 'important' field - but not sure if that's really worth the effort in > most cases. > > Cheers > > -- > Pat > > On 27/03/2010, at 4:50 AM, madhu wrote: > > > is there a way to specify weights per words in TS in the search > > query ? > > > For example my query is something like this : > > > Items.search "potatoes|tomatoes",match_mode=>:extended > > > Now in the search result i want to list results in this order : > > > 1) documents which have both 'tomatoes' and 'potatoes' first(this is > > the default behavior) > > 2) documents matching 'tomatoes' second - (how do i specify this ?) > > 3) documents matching 'potatoes' third > > > tx > > madhu > > > -- > > You received this message because you are subscribed to the Google Groups > > "Thinking Sphinx" group. > > To post to this group, send email to [email protected]. > > To unsubscribe from this group, send email to > > [email protected]. > > For more options, visit this group > > athttp://groups.google.com/group/thinking-sphinx?hl=en. -- You received this message because you are subscribed to the Google Groups "Thinking Sphinx" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/thinking-sphinx?hl=en.
