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

Alan Woodward updated LUCENE-6466:
----------------------------------
    Attachment: LUCENE-6466.patch

Updated patch, building on top of the SpanCollector API in LUCENE-6371.

This moves both getSpans() and extractTerms() to SpanWeight, and refactors the 
similarity and scoring a bit.  SpanWeight.getSpans() now looks very like 
Weight.scorer(), which is nice if we want to move towards merging the two APIs.

Still needs javadocs, etc, but I wanted to get some feedback before doing 
precommit checks.

> Move SpanQuery.getSpans() to SpanWeight
> ---------------------------------------
>
>                 Key: LUCENE-6466
>                 URL: https://issues.apache.org/jira/browse/LUCENE-6466
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Alan Woodward
>            Priority: Minor
>         Attachments: LUCENE-6466.patch, LUCENE-6466.patch
>
>
> SpanQuery.getSpans() should only be called on rewritten queries, so it seems 
> to make more sense to have this being called from SpanWeight



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

Reply via email to