[ https://issues.apache.org/jira/browse/LUCENE-7580?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15764653#comment-15764653 ]
Paul Elschot commented on LUCENE-7580: -------------------------------------- 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-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org