lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul Elschot (JIRA)" <>
Subject [jira] [Updated] (LUCENE-7615) SpanSynonymQuery
Date Mon, 02 Jan 2017 13:04:58 GMT


Paul Elschot updated LUCENE-7615:
    Attachment: LUCENE-7615.patch

Patch of 2 Jan 2017.

This can be used as proximity subquery whenever SynonymQuery is used now, i.e. for synonym

I think this improves span scoring somewhat, see the tests and the test output when uncommenting
showQueryResults for the test cases with two terms.

SynonymQuery exposes new methods getField() and SynonymWeight.getSimScorer() for use in SpanSynonymQuery.

Improved use of o.a.l.index.Terms and TermsEnum in SynonymQuery, at most a single TermsEnum
will be used.
Aside: how about renaming Terms to FieldTerms?

This takes DisjunctionSpans out of SpanOrQuery.
This adds SynonymSpans as (an almost empty) subclass of DisjunctionSpans, for later further
scoring improvement.

PHRASE_TO_SPAN_TERM_POSITIONS_COST is used from SpanTermQuery and made package private there.

> SpanSynonymQuery
> ----------------
>                 Key: LUCENE-7615
>                 URL:
>             Project: Lucene - Core
>          Issue Type: Improvement
>          Components: core/search
>    Affects Versions: master (7.0)
>            Reporter: Paul Elschot
>            Priority: Minor
>         Attachments: LUCENE-7615.patch
> A SpanQuery that tries to score as SynonymQuery.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message