| Summary: | [Help][Search] "Nothing found" if more than 1000 matches | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Holger Voormann <eclipse> | ||||
| Component: | User Assistance | Assignee: | Chris Goldthorpe <cgold> | ||||
| Status: | VERIFIED FIXED | QA Contact: | |||||
| Severity: | critical | ||||||
| Priority: | P3 | CC: | cgold, ChrisAustin, helmut.haigermoser, john.arthorne | ||||
| Version: | 3.7 | Flags: | cgold:
review+
ChrisAustin: review+ |
||||
| Target Milestone: | 3.7.1 | ||||||
| Hardware: | PC | ||||||
| OS: | Windows XP | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Holger Voormann
Created attachment 199890 [details] Patch for bug 352434 Problem: Because in org.apache.lucene.search.TopDocs totalHits is less(!) or equal than scoreDocs.length. Examples: * totalHits=0 and scoreDocs.length=0 * totalHits=861 and scoreDocs.length=861 * totalHits=13884 and scoreDocs.length=1000 will cause following ArrayIndexOutOfBoundsException: 1000 Solution: In org.eclipse.help.internal.search.LocalSearchManager.asList(TopDocs, IndexSearcher) use topDocs.scoreDocs.length instead of topDocs.totalHits Thanks for the patch! I will include this in 3.7.1. I verified that this could be reproduced in the SDK by searching for "the" , if the quotes are included in the search expression. Patch committed to HEAD. Patch committed to 3.7 Maintenance Stream, Fixed. Looks good to me. CQ:WIND00293269 Thanks for fixing this one! :) Helmut Verified in M20110824-0800 *** Bug 359886 has been marked as a duplicate of this bug. *** |