sphinx - sphinxQl getting query log -
using sphinxql
, while executing query , getting following error
select fieldname indexname height >= 165.25 , height <= 175.25 or age >=51; error 1064 (42000): sphinxql: syntax error, unexpected or, expecting $end near 'or age >=51'
select fieldname indexname (height >= 165.25 , height <= 175.25) or age >=51; error 1064 (42000): sphinxql: >=, <=, , between floating-point filter types supported in version near '(height >= 165.25 , height <= 175.25) or age >=51'
advance , please suggest
try like
select fieldname, if( (height >= 165.25 , height <= 175.25) or age >=51, 1, 0) myfilter indexname myfilter = 1
sphinx can 'or', can't physically in clause itself.
Comments
Post a Comment