[
https://issues.apache.org/jira/browse/LUCENE-2785?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12965180#action_12965180
]
Shai Erera commented on LUCENE-2785:
------------------------------------
It would be good if we could have a TotalHitsCollector which just counts total
hits (as a standalone Collector). Problem is, we need to return a TDC from the
static create() of TFC and TSDC, and a TotalHitsCollector shouldn't have
topDocs() ...
> TopFieldCollector throws AIOOBE if numHits is 0
> -----------------------------------------------
>
> Key: LUCENE-2785
> URL: https://issues.apache.org/jira/browse/LUCENE-2785
> 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: [email protected]
For additional commands, e-mail: [email protected]