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

Popular posts from this blog

ruby - Trying to change last to "x"s to 23 -

jquery - Clone last and append item to closest class -

c - Unrecognised emulation mode: elf_i386 on MinGW32 -