title: Zend lucene - search within range
body: <p>I have the following code to create the Zend Lucene index</p>
  
  <pre><code>        $doc-&gt;addField(Zend_Search_Lucene_Field::UnStored('keywords', $job-&gt;getKeywords()));
          $doc-&gt;addField(Zend_Search_Lucene_Field::UnStored('title', $job-&gt;getTitle()));
          $doc-&gt;addField(Zend_Search_Lucene_Field::UnStored('region', $job-&gt;getRegion()));
          $doc-&gt;addField(Zend_Search_Lucene_Field::keyword('minSalary', $minSalary));
          $doc-&gt;addField(Zend_Search_Lucene_Field::keyword('maxSalary', $maxSalary));
          $doc-&gt;addField(Zend_Search_Lucene_Field::UnStored('type', $job-&gt;getType()));
  </code></pre>
  
  <p>and my search query is </p>
  
  <pre><code>$query = 'minSalary:[0 TO 20000]';
  </code></pre>
  
  <p>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</p>
  
  <pre><code>110000
  100000
  20000
  10000
  </code></pre>
  
  <p>Can anyone advice on this?</p>
  
  <p>Thanks
  B</p>