I have a date field (Start_date) in my database that have indexed it in sphinx as sql_field_string and it's format is like: 2000-12-12. When I want to search on that field I submit a query like this:
select * from all where match ('@Start_date 2000-12-12');
and it's working, but I'm having trouble when submitting a query with OR operator like this that does not return any results while in fact there are many results:
select * from all where match ('@Start_date 2000-12-12 | 1999-12-12');
And when I use Parentheses for values, problem is fixed!
select * from all where match ('@Start_date (2000-12-12) | (1999-12-12)');
Why is this happening ?
( I have added '-' character to my charset_table).
from sphinx.conf file:
dict = crc
min_infix_length=3