Setting weights on indices will probably do the trick:

  ThinkingSphinx.search 'foo',
    :index_weights => {'place_core' => 5}

Any indices not mentioned get the default weight of 1. If you've got a delta 
index, then add 'place_delta' in there as well.

-- 
Pat

On 24/05/2011, at 6:02 AM, 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