[ 
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-2.patch

Patch part 2, following discussion on LUCENE-6371.
* removes SpanSimilarity, in favour of a map of terms to termcontexts
* SpanTermQuery can take an optional TermContext in its constructor, similar to 
TermQuery
* SpanMTQWrapper now preserves term states when rewriting to SpanTermQueries

What would be nice would be to try and write an asserting TermsEnum that could 
check how many times seekExact(BytesRef) was called, to ensure that the various 
queries are re-using their term states properly.

> 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
>             Fix For: Trunk, 5.3
>
>         Attachments: LUCENE-6466-2.patch, LUCENE-6466.patch, 
> LUCENE-6466.patch, LUCENE-6466.patch, 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