[ 
https://issues.apache.org/jira/browse/LUCENE-4607?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13527986#comment-13527986
 ] 

Uwe Schindler commented on LUCENE-4607:
---------------------------------------

One thing: estimatedDocCount is long, but docIds in Lucene are still int - this 
makes no sense, because the current scorer/disi interface can never return 
anything > Integer.MAX_VALUE, so the estimatedDocCount can never be 64 bits.

We should maybe rethink in the future to make docIds in Lucene longs, but until 
this has happened, we should not mix both datatypes in public APIs, this would 
cause confusion.
                
> Add estimateDocCount to DocIdSetIterator
> ----------------------------------------
>
>                 Key: LUCENE-4607
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4607
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: core/search
>    Affects Versions: 4.0
>            Reporter: Simon Willnauer
>             Fix For: 4.1, 5.0
>
>         Attachments: LUCENE-4607.patch
>
>
> this is essentially a spinnoff from LUCENE-4236
> We currently have no way to make any decsision on how costly a DISI is 
> neither when we apply filters nor when we build conjunctions in BQ. Yet we 
> have most of the information already and can easily expose them via a cost 
> API such that BS and FilteredQuery can apply optimizations on per segment 
> basis.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to