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

Adrien Grand updated LUCENE-6268:
---------------------------------
    Attachment: LUCENE-6268.patches

Here is a patch, it replaces:
 - FieldValueFilter with FieldValueQuery
 - DocValuesRangeFilter and DocTermsOrdRangeFilter with DocValuesRangeQuery

These new queries support two-phase iterators with an approximation which 
matches all documents between 0 and maxDoc-1.

The new queries do not have the "docsWithField instanceof BitSet" optimization 
anymore since the 5.0 doc-values format does not use bit sets for any of its 
docWithField implementations.

On 5.x we could just deprecate these filters.

> Replace doc values filters with queries having approximations
> -------------------------------------------------------------
>
>                 Key: LUCENE-6268
>                 URL: https://issues.apache.org/jira/browse/LUCENE-6268
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Adrien Grand
>            Assignee: Adrien Grand
>            Priority: Minor
>             Fix For: 5.1
>
>         Attachments: LUCENE-6268.patches
>
>
> We should use approximations in order to deal with queries/filters that have 
> slow iterators such as doc-values based queries/filters.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to