lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "nishant mehta (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LUCENE-6513) Allow limits on SpanMultiTermQueryWrapper expansion
Date Thu, 06 Jul 2017 22:47:00 GMT

    [ https://issues.apache.org/jira/browse/LUCENE-6513?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16077300#comment-16077300
] 

nishant mehta commented on LUCENE-6513:
---------------------------------------

Here's another approach we tried for limiting the MTQ expansion of span queries. FrequentTermsScoringRewrite
collects terms using the ParallelArraysTermCollector in ScoringRewrite which is then added
to the PriorityQueue in FrequentTermsScoringRewrite, overflows in the PriorityQueue are handled
using the predicate supplied to FrequentTermsScoringRewrite. The default is DF_ORDER, but
there's also a DF_THEN_TTF_ORDER provided for ties, and others could be added if needed. Then
SpanQueryFrequentTermsScoringRewrite simply builds a SpanOrQuery out of the collected terms.
[~romseygeek] the test is inspired from your earlier patch. Thanks [~dsmiley] for your prior
feedback on this.

> 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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message