I have the following code to create the Zend Lucene index
$doc->addField(Zend_Search_Lucene_Field::UnStored('keywords', $job->getKeywords()));
$doc->addField(Zend_Search_Lucene_Field::UnStored('title', $job->getTitle()));
$doc->addField(Zend_Search_Lucene_Field::UnStored('region', $job->getRegion()));
$doc->addField(Zend_Search_Lucene_Field::keyword('minSalary', $minSalary));
$doc->addField(Zend_Search_Lucene_Field::keyword('maxSalary', $maxSalary));
$doc->addField(Zend_Search_Lucene_Field::UnStored('type', $job->getType()));
and my search query is
$query = 'minSalary:[0 TO 20000]';
Here I am trying to get all jobs whose minSalary is equal or less than 20000. But the result I get has jobs with following minSalary values
110000
100000
20000
10000
Can anyone advice on this?
Thanks B