Pat,
Many thanks for your response.
I think I went down that path at one point and couldn't make it work.
Obviously the expression you're suggesting (1+2) is just an example, but
let's go with that.
When I do this:
ret = Title.search("Batman", :ranker => 'expr(1+2)')
I get the error
ThinkingSphinx::SyntaxError: sphinxql: syntax error, unexpected CONST_INT,
expecting QUOTED_STRING near '1+2); SHOW META' - SELECT * FROM `title_core`
WHERE MATCH('Batman') AND `sphinx_deleted` = 0 LIMIT 0, 20 OPTION
ranker=expr(1+2); SHOW META
How do I get rid of that error?
Can you give me an example of a more complicated expression that you've
actually used?
Many thanks,
Travis
--
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.