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

Adrien Grand commented on LUCENE-6227:
--------------------------------------

Yes. I don't have concrete plans yet, but the only thing that filters have but 
queries don't is random-access. For instance FilteredQuery today has a 
not-so-bad way to execute doc-values filters by advancing the query first and 
then checking the filter, we don't have this on BooleanQuery today. But I think 
something like LUCENE-6198 could be a better alternative, ie. doc-values 
filters would return a match-all iterator and do the heavy work in confirm() 
and boolean queries would work on it just fine. So once this kind of stuff is 
in, I think we'll be able to remove filters?

> Add BooleanClause.Occur.FILTER
> ------------------------------
>
>                 Key: LUCENE-6227
>                 URL: https://issues.apache.org/jira/browse/LUCENE-6227
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Adrien Grand
>            Assignee: Adrien Grand
>            Priority: Minor
>             Fix For: Trunk, 5.1
>
>         Attachments: LUCENE-6227.patch
>
>
> Now that we have weight-level control of whether scoring is needed or not, we 
> could add a new clause type to BooleanQuery. It would behave like MUST exept 
> that it would not participate in scoring.
> Why do we need it given that we already have FilteredQuery? The idea is that 
> by having a single query that performs conjunctions, we could potentially 
> take better decisions. It's not ready to replace FilteredQuery yet as 
> FilteredQuery has handling of random-access filters that BooleanQuery 
> doesn't, but it's a first step towards that direction and eventually 
> FilteredQuery would just rewrite to a BooleanQuery.
> I've been calling this new clause type FILTER so far, but feel free to 
> propose a better name.



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