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

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).

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.

My bad! It is still happening. Was looking at the wrong file just now. Terribly sorry for the unnecessary post above.

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.