View Single Post
  #6 (permalink)  
Old 08-15-2008, 03:49 AM
ohsmitt ohsmitt is offline
Junior Member
 
Join Date: Aug 2008
Posts: 2
Default

Ok, after messing with this for a long time I figured out that other people can't search for numeric data. Here is a solution:
PHP Code:
$index Zend_Search_Lucene::open();
$pathTerm  = new Zend_Search_Lucene_Index_Term('$numericData''fieldname');
$pathQuery = new Zend_Search_Lucene_Search_Query_Term($pathTerm);
$query = new Zend_Search_Lucene_Search_Query_Boolean();
$query->addSubquery($pathQuerytrue /* required */);
$hits $index->find($query); 
Note: fieldname can be omitted but obviously if you are looking to delete a Lucene Doc to update it you want to search for the exact field.
Reply With Quote