You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Adrien Grand (JIRA)" <ji...@apache.org> on 2015/02/09 10:51:34 UTC

[jira] [Updated] (LUCENE-6227) Add BooleanClause.Occur.FILTER

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

Adrien Grand updated LUCENE-6227:
---------------------------------
    Attachment: LUCENE-6227.patch

Patch. ConjunctionScorer now takes two sets of scorers, a first one which contains required clauses and is used for advancing to the next match, and another one which only takes the scoring clauses and is used when score() is called.

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