#197036: Maven Repositories > NetBeans > org.netbeans.modules shows truncated list

Jesse Glick <[email protected]> Mon, 28 Mar 2011 16:11:52 -0400
Newsgroups gmane.comp.java.netbeans.reviewers
Organization Oracle Corp. / NetBeans
Message-ID <[email protected]>
http://netbeans.org/bugzilla/show_bug.cgi?id=197036
http://hg.netbeans.org/core-main/rev/106ac2980f1f

Impact: queries on a Maven repository index quietly discard any results after the 1000th, due to a bug in the Maven Indexer component. Most queries would have far fewer 
results anyway, but there are a few legitimate cases; in particular, if you are browsing the list of modules in the NetBeans repository, you will see just the last few 
dozen, when there are really several hundred. This makes it look like the repository index, or the repository itself, is corrupted; and there may be other unknown 
functionality broken by missing results. (The generally very long list of all groups in the repository is handled by special Indexer code, not this kind of query.)

Fix: set a specific resultHitLimit on the search response, and keep on doubling the limit if it is exceeded. (BooleanQuery.TooManyClauses from the underlying Lucene 
engine can still abort big searches.)

Risk: reviewed by tzezula, but the fix could still be somehow mistaken, perhaps behaving poorly on some unusually large search.