ZF-6636: Lucene Search doesn't find keyword indexed fields

Issue Type: Bug Created: 2009-05-13T09:33:47.000+0000 Last Updated: 2012-05-05T02:35:50.000+0000 Status: Closed Fix version(s): Reporter: Mickael Bailly (dready92) Assignee: Adam Lundrigan (adamlundrigan) Tags: - Zend_Search_Lucene

  • zf-caretaker-adamlundrigan

Related issues: - ZF-2982



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


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.

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.