Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Not A Problem
-
4.3
-
None
-
New
Description
TopDocs hits = searcher.search(query, N);
hits.totalHits is not equal to hits.scoreDocs.length in lucene whose version is 4.3.0
when I write the fllowing codes:
for (int i = 0; i < hits.totalHits; i++)
It may throw ArrayIndexOutOfBoundsException, but in version 4.0.0, the value of hits.totalHits and the value of hits.scoreDocs.length are qual!
And I think they should be qual!
Thank you!