title: Zend Search Lucene numerical range searches
body: <p>I am having difficulty determining my misunderstanding of how Zend Search Lucene indexes and searches integers in ranges.</p>
  
  <p>In the following example, I would expect the output to be 1, however it is always 2 (both results). Any hints would be much appreciated.</p>
  
  <pre><code>&lt;?php
  
  require_once 'Zend/Loader/Autoloader.php';
  $loader = Zend_Loader_Autoloader::getInstance();
  
  $search = Zend_Search_Lucene::create('test.index');
  
  $doc = new Zend_Search_Lucene_Document();
  $doc-&gt;addField(Zend_Search_Lucene_Field::Text('foo', 'Hello'));
  $doc-&gt;addField(Zend_Search_Lucene_Field::Keyword('bar', 100));
  $search-&gt;addDocument($doc);
  
  $doc = new Zend_Search_Lucene_Document();
  $doc-&gt;addField(Zend_Search_Lucene_Field::Text('foo', 'Hello'));
  $doc-&gt;addField(Zend_Search_Lucene_Field::Keyword('bar', 200));
  $search-&gt;addDocument($doc);
  $search-&gt;commit();
  
  var_dump(count($search-&gt;find('foo:Hello AND bar:[050 TO 150]')));
  </code></pre>