lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael McCandless (JIRA)" <>
Subject [jira] Commented: (LUCENE-2785) TopFieldCollector throws AIOOBE if numHits is 0
Date Tue, 30 Nov 2010 10:28:10 GMT


Michael McCandless commented on LUCENE-2785:

So... (the one that sorts by score) throws an EXC if numHits is 0...

Maybe... we should do the same for the sort-by-field case?

And, also make this new Collector that only counts hits?  The exception message can then point
users to this new Collector?

I'm all for not making the app handle corner cases... but, then, I don't like that you silently
get bad performance.  It's better to steer the apps to use the right Collector for the job?

> TopFieldCollector throws AIOOBE if numHits is 0
> -----------------------------------------------
>                 Key: LUCENE-2785
>                 URL:
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Search
>            Reporter: Michael McCandless
>            Priority: Minor
>             Fix For: 3.1, 4.0
> See solr-user thread "ArrayIndexOutOfBoundsException for query with rows=0 and sort param".
> I think we should just create a null collector (only tallies up totalHits) if numHits
is 0?

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message