lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul Elschot (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (LUCENE-7580) Spans tree scoring
Date Tue, 20 Dec 2016 16:54:58 GMT

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

Paul Elschot edited comment on LUCENE-7580 at 12/20/16 4:53 PM:
----------------------------------------------------------------

I have started using this in the tests for the surround query language, I'll open an issue
for that later.

This found a bug in ConjunctionNearSpansDocScorer.recordMatch().
A -1 slop can occur when the same term is used twice in a SpanNearQuery, and this causes a
division by zero in computing the slop factor in from recordMatch().
This can be easily avoided by using 0 slop in such cases.


was (Author: paul.elschot@xs4all.nl):
I have started with on using this in the tests for the surround query language, I'll open
an issue for that later.

This found a bug in ConjunctionNearSpansDocScorer.recordMatch().
A -1 slop can occur when the same term is used twice in a SpanNearQuery, and this causes a
division by zero in computing the slop factor in from recordMatch().
This can be easily avoided by using 0 slop in such cases.

> Spans tree scoring
> ------------------
>
>                 Key: LUCENE-7580
>                 URL: https://issues.apache.org/jira/browse/LUCENE-7580
>             Project: Lucene - Core
>          Issue Type: Improvement
>          Components: core/search
>    Affects Versions: master (7.0)
>            Reporter: Paul Elschot
>            Priority: Minor
>             Fix For: 6.x
>
>         Attachments: LUCENE-7580.patch, LUCENE-7580.patch
>
>
> Recurse the spans tree to compose a score based on the type of subqueries and what matched



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


Mime
View raw message