I'm trying to wildcard a field using Zend search Lucene.
$index = Zend_Search_Lucene::open("/data/my_index1");
$doc = new Zend_Search_Lucene_Document();
$doc->addField(Zend_Search_Lucene_Field::Text('date',$date->format('dmY')));
$index->addDocument($doc);
$index->updateIndex();
$hits = $index->find('2012*');
The last line is not working because my date is something like 02062012
. If i try with $hits = $index->find('*2012*');
is not working either.
Any idea?
You should also verify that your search configuration allows a leading '*', as that is not the default in Lucene.