ZF-7789: Zend lucene search result will lose some records when using the index created by java lucene
When I was using zend search to search a string cross multi-fields from the index created by java lucene 1.9.1, the search result missed one record. Please follow the steps below to reproduce it.
copy the index files in attachment to "C:\index"
write a php script including the following code $index = Zend_Search_Lucene::open("C:\index"); $query = Zend_Search_Lucene_Search_QueryParser::parse("contents:role AND tags:abc"); $hits = $index->find($query);
run it and you will see the search result count will be three. The correct count should be four.