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

Alan Woodward commented on LUCENE-6371:
---------------------------------------

Ah, ok.  This is more to do with LUCENE-6466.  Moving .getSpans() and 
.extractTerms() to SpanWeight means that we can't collect the termcontexts in 
the constructor any more, because we can't call them on a partially constructed 
object.  And the TermContexts map was already in the API, but it was in 
getSpans() rather than in the SpanWeight constructor.  You're right that it's 
messy though.  I'm just not sure there's a cleaner way of doing it that doesn't 
involve completely changing how the SpanScorer works.

> Improve Spans payload collection
> --------------------------------
>
>                 Key: LUCENE-6371
>                 URL: https://issues.apache.org/jira/browse/LUCENE-6371
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Paul Elschot
>            Assignee: Alan Woodward
>            Priority: Minor
>             Fix For: Trunk, 5.3
>
>         Attachments: LUCENE-6371.patch, LUCENE-6371.patch, LUCENE-6371.patch, 
> LUCENE-6371.patch
>
>
> Spin off from LUCENE-6308, see the comments there from around 23 March 2015.



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