[
https://issues.apache.org/jira/browse/LUCENE-6513?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
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: https://issues.apache.org/jira/browse/LUCENE-6513
> 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
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]