[
https://issues.apache.org/jira/browse/LUCENE-9062?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16983697#comment-16983697
]
ASF subversion and git services commented on LUCENE-9062:
---------------------------------------------------------
Commit bed694ec8811c67b8ba4b4c8943e60eda281850a in lucene-solr's branch
refs/heads/master from Alan Woodward
[ https://gitbox.apache.org/repos/asf?p=lucene-solr.git;h=bed694e ]
LUCENE-9062: QueryVisitor.consumeTermsMatching (#1037)
This commit adds a consumeTermsMatching() method to QueryVisitor, allowing
queries that match against a class of terms to report this back to the visitor.
It also
changes highlighting code to use this new method, replacing the current
implementation
via instanceof checks.
> Extend QueryVisitor to support multi-term queries
> -------------------------------------------------
>
> Key: LUCENE-9062
> URL: https://issues.apache.org/jira/browse/LUCENE-9062
> Project: Lucene - Core
> Issue Type: Improvement
> Reporter: Alan Woodward
> Assignee: Alan Woodward
> Priority: Major
> Time Spent: 5h 40m
> Remaining Estimate: 0h
>
> Currently, QueryVisitor only allows queries to report that they consume a
> fixed set of terms. For multi-term queries, however, they don't know which
> terms in an index they're going to match until rewrite time. Current users
> of this API get round this by using instanceof checks in a `visitLeaf()`
> method, but this is clunky and does not adapt well to user-defined queries.
> We should extend QueryVisitor so that queries can report that they consume a
> class of terms matching an automaton, in addition to individual terms.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]