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 at 
> http://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.

Reply via email to