[
https://issues.apache.org/jira/browse/LUCENE-6244?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14321632#comment-14321632
]
Robert Muir commented on LUCENE-6244:
-------------------------------------
In the first chunk of the patch, i think we should pass false to needsScores.
This is when we have multiple prohibited clauses and we form a disjunction of
them. so scoring is implicitly not needed there:
{noformat}
@@ -376,10 +376,7 @@
} else {
float coords[] = new float[prohibited.size()+1];
Arrays.fill(coords, 1F);
- return new ReqExclScorer(main,
- new DisjunctionSumScorer(this,
- prohibited.toArray(new
Scorer[prohibited.size()]),
- coords));
+ return new ReqExclScorer(main, new DisjunctionSumScorer(this,
prohibited, coords, needsScores));
{noformat}
> Approximations on disjunctions
> ------------------------------
>
> Key: LUCENE-6244
> URL: https://issues.apache.org/jira/browse/LUCENE-6244
> Project: Lucene - Core
> Issue Type: Improvement
> Reporter: Adrien Grand
> Assignee: Adrien Grand
> Fix For: Trunk, 5.1
>
> Attachments: LUCENE-6244.patch, LUCENE-6244.patch, wikibig.tasks
>
>
> Like we just did on exact phrases and conjunctions, we should also support
> approximations on disjunctions in order to apply "matches()" lazily.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]