Is there any way to build a ranking expression that references the string 
length of the text field?  e.g. if I'm searching for "Fred", I'd like to 
rank a record that has a full text of "Fred" over one that has a full text 
of "there are several words in this document including the word Fred".

I've been staring at the Sphinx 
docs http://sphinxsearch.com/docs/current.html#document-factors and I don't 
see anything.  If not, I might have to add a column to my records in SQL, 
then tweak the before_save callback in ActiveRecord to update that, then 
use that field in the :ranker expression...

-- 
You received this message because you are subscribed to the Google Groups 
"Thinking Sphinx" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/thinking-sphinx.
For more options, visit https://groups.google.com/d/optout.

Reply via email to