You could try two options:

SPH_SORT_EXPR which lets you sort by an arithmetic expression.

Link: http://sphinxsearch.com/docs/manual-1.10.html#sorting-modes

Or you could do try SetOverride which allows you to affect only a particular 
query at a time. I'm not sure if this would be supported in 
ThinkingSphinx/Riddle (haven't checked) but it sounds more along the lines of 
what you want.

Link: http://sphinxsearch.com/docs/manual-1.10.html#api-func-setoverride

Both of those options are available from 0.9.9 onward.

Hope that helps,
Curtis

On May 23, 2011, at 4:02 PM, Draiken wrote:

> Hi,
> I have two models that are being searched: Places and Attractions
> I need to add a slightly higher score to places, so that the city
> comes before the attractions of that same city
> 
> It cannot be hard coded order, I just want to add more weight to it,
> so that if an attraction do have more weight than the city, it does
> appear first.
> 
> I'm sorry if this is a real easy thing to do but I didn't find any
> documentation on things like that.
> 
> Thanks !
> 
> -- 
> 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