You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openoffice.apache.org by bu...@apache.org on 2013/12/02 12:59:36 UTC
[Bug 122871] Search in Help not working (no results) for some common
strings
https://issues.apache.org/ooo/show_bug.cgi?id=122871
hanya <ha...@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |hanya.runo@gmail.com
--- Comment #5 from hanya <ha...@gmail.com> ---
Created attachment 82023
--> https://issues.apache.org/ooo/attachment.cgi?id=82023&action=edit
Patch to fix ArrayIndexOutOfBoundException when results over 100
In com.sun.star.help.HelpSearch.queryImpl method,
when search result contains over spacified number for searcher.search( aQuery,
100 ) method, aHits.totalHits holds hit count but aHits.scoreDocs holds only
specified
number of results.
For example, searching about term "MsgBox" in Basic context without "Find in
heading only" results aHits.totalHits == 106 and aHits.scoreDocs.length == 100.
So, ArrayIndexOutOfBoundException raised in the following line:
> ScoreDoc aDoc = aHits.scoreDocs[iHit];
--
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.
You are watching all bug changes.