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

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

I *think* leniency should be fixed now, because the TermContext for each leaf 
is built by SpanTermQuery.createWeight(), and then collected for IDF via a new 
SpanWeight.extractTermContexts() method, rather than being built by the parent 
Weight via extractTerms().  So there should only be one visit to the terms 
dictionary per term in normal use.

There's still an extra visit in SpanMTQWrapper, but I think we can fix that by 
adding a SpanTermQuery(Term, TermContext) constructor, like we have with the 
standard TermQuery.  Maybe we should carry this over to LUCENE-6466, as here 
it's getting mixed up with the span collection API, which is a separate thing.  
I'll put up a patch.

> 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