You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Alan Woodward (JIRA)" <ji...@apache.org> on 2015/04/08 23:37:12 UTC

[jira] [Updated] (LUCENE-6412) Merge SpanTermQuery into TermQuery

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

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

Patch moving the functionality into TermQuery and deprecated SpanTermQuery.

The one wrinkle is that scores from plain TermQueries and SpanTermQueries are different, because STQ uses a SpanWeight/SpanScorer.  I've kept TestSpansAdvanced and TestSpansAdvanced2 using STQ rather than TermQuery so that the tests still pass, but maybe this doesn't matter that much?

> Merge SpanTermQuery into TermQuery
> ----------------------------------
>
>                 Key: LUCENE-6412
>                 URL: https://issues.apache.org/jira/browse/LUCENE-6412
>             Project: Lucene - Core
>          Issue Type: Improvement
>    Affects Versions: Trunk, 5.2
>            Reporter: Alan Woodward
>            Priority: Minor
>         Attachments: LUCENE-6412.patch
>
>
> Having a separate SpanTermQuery doesn't actually gain us anything now, and it's trivial enough to make TermQuery extend SpanQuery copy the getSpans() and getField() impls over from STQ.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org