lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael McCandless (JIRA)" <j...@apache.org>
Subject [jira] Updated: (LUCENE-2785) TopFieldCollector throws AIOOBE if numHits is 0
Date Tue, 30 Nov 2010 19:50:12 GMT

     [ https://issues.apache.org/jira/browse/LUCENE-2785?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Michael McCandless updated LUCENE-2785:
---------------------------------------

    Attachment: LUCENE-2785.patch

Patch.

I moved the numHits > 0 check down into TFC.create an TSDC.create, out of IndexSearcher.

And I added a new TotalHitCountCollector.

> 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
>
>         Attachments: LUCENE-2785.patch
>
>
> 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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message