Hi Josh

Custom rank modes are only available using the EXTENDED2 match mode (as noted 
in the Sphinx docs link you posted) - so try the following instead:

  Event.search 'foo', :rank_mode => :sph04, :match_mode => :extended2

Cheers

-- 
Pat

On 24/06/2011, at 4:50 AM, Josh wrote:

> Additionally, I see no difference in sphinx's query log when changing
> rank_mode:
> 
> 
> Event.search('Tour asdfasdfasdf', :match_mode => :any, :rank_mode
> => :bm25).map(&:name)
> Event.search('Tour asdfasdfasdf', :match_mode => :any, :rank_mode
> => :sph04).map(&:name)
> Event.search('Tour asdfasdfasdf', :match_mode => :any, :rank_mode
> => :none).map(&:name)
> 
> [Thu Jun 23 18:49:07.504 2011] 0.001 sec [any/2/rel 3 (0,20)]
> [event_core,event_delta] Tour asdfasdfasdf
> [Thu Jun 23 18:49:22.447 2011] 0.001 sec [any/2/rel 3 (0,20)]
> [event_core,event_delta] Tour asdfasdfasdf
> [Thu Jun 23 18:49:33.919 2011] 0.001 sec [any/2/rel 3 (0,20)]
> [event_core,event_delta] Tour asdfasdfasdf
> 
> 
> On Jun 23, 2:33 pm, Josh <[email protected]> wrote:
>> I see that Riddle has support for it here:
>> 
>> https://github.com/freelancing-god/riddle/blob/master/lib/riddle/clie...
>> 
>> On Jun 23, 2:14 pm, Josh <[email protected]> wrote:
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>>> There's a > 1.1beta ranking mode that I'd like to use SPH_RANK_SPH04:
>> 
>>> http://sphinxsearch.com/docs/manual-2.0.1.html#api-func-setrankingmode
>> 
>>> Event.search('foo', :rank_mode => :sph04) appears to have no effect on
>>> the search results.  Am I doing something wrong here?
>> 
>>> Also, I'm unable to track down whatever it is TS is doing
>>> with :rank_mode before it queries sphinx - so if someone could point
>>> me to where that happens, i'd appreciate it!
>> 
>>> 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