Issue

ZF-10009: Search Lucene returns not enough hits for the given search string

Issue Type: Patch Created: 2010-06-18T00:56:26.000+0000 Last Updated: 2012-11-20T21:37:58.000+0000 Status: Open Fix version(s): Reporter: Hying (rahy) Assignee: None Tags: - Zend_Search_Lucene

Related issues: Attachments:

Description

In some cases the search for 'dingo' returns no results, however the search for 'ding' return the correct hits, although the index contains documents with the text 'dingo'.

To resolve this, modify the class SegmentInfo.php from line 1912:

------------ from ---------------------- } else { // We have reached term we are looking for break; } ------------ to ------------------------ } else { // We have reached term we are looking for $highIndex = $mid; break;

}

Because delta can be exact 0 if strcmp for a term in the middle match (line 1905). Then, highIndex can be 520, lowIndex 500. For further serch, the hightIndex should start at the current match with the index '$mid=510' and not 520 !!!

Comments

No comments to display

Have you found an issue?

See the Overview section for more details.

Copyright

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

Contacts