lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Da Huang (JIRA)" <>
Subject [jira] [Commented] (LUCENE-4396) BooleanScorer should sometimes be used for MUST clauses
Date Mon, 19 May 2014 11:30:38 GMT


Da Huang commented on LUCENE-4396:

Thanks for your reply.
{quote}OK, maybe add a comment just saying something "temporarily commented out so NovelBS
is invoked instead of BS"?{quote}
I will comment that.
{quote} And what exception did luceneutil throw...?{quote}
It just says that "hit %s has wrong field/score value %s vs %s", and the perf. test abort.
And the score value diff. is about 0.000001 .

> BooleanScorer should sometimes be used for MUST clauses
> -------------------------------------------------------
>                 Key: LUCENE-4396
>                 URL:
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Michael McCandless
>         Attachments: AndOr.tasks, LUCENE-4396.patch, LUCENE-4396.patch, LUCENE-4396.patch,
LUCENE-4396.patch, luceneutil-score-equal.patch
> Today we only use BooleanScorer if the query consists of SHOULD and MUST_NOT.
> If there is one or more MUST clauses we always use BooleanScorer2.
> But I suspect that unless the MUST clauses have very low hit count compared to the other
clauses, that BooleanScorer would perform better than BooleanScorer2.  BooleanScorer still
has some vestiges from when it used to handle MUST so it shouldn't be hard to bring back this
capability ... I think the challenging part might be the heuristics on when to use which (likely
we would have to use firstDocID as proxy for total hit count).
> Likely we should also have BooleanScorer sometimes use .advance() on the subs in this
case, eg if suddenly the MUST clause skips 1000000 docs then you want to .advance() all the
SHOULD clauses.
> I won't have near term time to work on this so feel free to take it if you are inspired!

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message