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

Uwe Schindler commented on SOLR-5002:
-------------------------------------

bq. one trick is we cant actually use FilteredQuery because of some sneaky 
stuff in UninvertedField (which also uses this method). See the comment. 

I am nervous if this is a hidden bug in solr that could be affect other stuff. 
If a UninvertedField.doNegative() handles deleted documents in a wrong way and 
you are able to create a filter out of it, it could lead to wrong results, if 
the filter is applied down-low (random access).
                
> optimize numDocs(Query,DocSet) when filterCache is null
> -------------------------------------------------------
>
>                 Key: SOLR-5002
>                 URL: https://issues.apache.org/jira/browse/SOLR-5002
>             Project: Solr
>          Issue Type: Improvement
>            Reporter: Robert Muir
>         Attachments: SOLR-5002.patch
>
>
> getDocSet(Query, DocSet) has this opto, but numDocs does not.
> Especially in this case, where we just want the intersection count, its 
> faster to do a filtered query with TotalHitCountCollector and not create 
> bitsets at all...
>  

--
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