lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alan Woodward (JIRA)" <>
Subject [jira] [Updated] (LUCENE-6513) Allow limits on SpanMultiTermQueryWrapper expansion
Date Wed, 05 Jul 2017 15:05:00 GMT


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

Waking this one up again, here's a different attempt at limiting MTQ expansion for span queries.
 We can't easily use TopTermsRewrite to select the most-frequent terms, because term frequency
is an index-wide stat, and TopTerms only sees info from a single segment at a time.  Instead,
I'm using MultiTermsEnum to iterate through the matching terms, and recording the most frequent
in a priority queue.

The default is for SpanMTQWrapper to have no limits, but maybe we should change this to use
the max boolean clause limit?

> Allow limits on SpanMultiTermQueryWrapper expansion
> ---------------------------------------------------
>                 Key: LUCENE-6513
>                 URL:
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Alan Woodward
>            Priority: Minor
>         Attachments: LUCENE-6513.patch, LUCENE-6513.patch, LUCENE-6513.patch
> SpanMultiTermQueryWrapper currently rewrites to a SpanOrQuery with as many clauses as
there are matching terms.  It would be nice to be able to limit this in a slightly nicer way
than using TopTerms, which for most queries just translates to a lexicographical ordering.

This message was sent by Atlassian JIRA

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

View raw message