I set each document with a date field. (Keyword)
The values stored in it are in this format; 20100511
Every time I try to execute a range request, I get the following error:
date:[10000000 TO 20000000]
At least one boundary range query term must be a non-empty member
Anyone got it?
Update
I got this to work programmatically. Does this mean that the parser is not working?
$from = new Zend_Search_Lucene_Index_Term('10000000', 'dateOfBirthMod');
$to = new Zend_Search_Lucene_Index_Term('20000000', 'dateOfBirthMod');
$query = new Zend_Search_Lucene_Search_Query_Range($from, $to, true);
source
share