ZF-6636: Lucene Search doesn't find keyword indexed fields
Description
Zend Search Lucene doesn't seem to search in keyword fields with the find method ?
To reproduce :
$index = Zend_Search_Lucene::create('testing'); $lucene_doc = new Zend_Search_Lucene_Document(); $lucene_doc->addField(Zend_Search_Lucene_Field::Keyword('_id', 'doc1')); $index->addDocument($lucene_doc); $index->commit();
$hits = $index->find('doc1');
echo count($hits)." result(s)\n"; // echoes "0 result(s)"
Comments
Posted by Hendra Christian (hendrachristian) on 2009-10-29T17:58:10.000+0000
I have a slightly different problem. When I index with keyword, I can do a search but it's case sensitive. The others (text, unStored) works fine (case insensitive).
Posted by Hendra Christian (hendrachristian) on 2009-10-29T18:24:49.000+0000
I'm sorry, ignore my message above. I was using 1.9.3PL where it happened, it seems to be working fine when I upgraded to 1.9.5.
Posted by Hendra Christian (hendrachristian) on 2009-10-29T18:31:45.000+0000
My bad! It is still happening. Was looking at the wrong file just now. Terribly sorry for the unnecessary post above.
Posted by Adam Lundrigan (adamlundrigan) on 2012-05-05T02:35:50.000+0000
This issue is very old. It would be difficult, at this late stage in ZFv1's lifecycle, to fix this adequately without introducing a backwards-compatibilty break.