[
https://issues.apache.org/jira/browse/LUCENE-8306?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16470358#comment-16470358
]
Alan Woodward commented on LUCENE-8306:
---------------------------------------
Here's a patch with an outline for an API. MatchesIterator gets a
termMatches() method, returning a list of TermMatch objects. TermMatch
contains the term, payload, position and offsets of each term within the
current match.
> Allow iteration over the term positions of a Match
> --------------------------------------------------
>
> Key: LUCENE-8306
> URL: https://issues.apache.org/jira/browse/LUCENE-8306
> Project: Lucene - Core
> Issue Type: New Feature
> Environment: For multi-term queries such as phrase queries, the
> matches API currently just returns information about the span of the whole
> match. It would be useful to also expose information about the matching
> terms within the phrase. The same would apply to Spans and Interval queries.
> Reporter: Alan Woodward
> Assignee: Alan Woodward
> Priority: Major
> Attachments: LUCENE-8306.patch
>
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]