[
https://issues.apache.org/jira/browse/LUCENE-8306?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16549163#comment-16549163
]
Alan Woodward commented on LUCENE-8306:
---------------------------------------
Jim and I discussed this, and came up with the following:
* match iteration only needs two levels: the top level, and the leaf level
* at the leaf level, getSubMatches() will return null
* phrase matches should be treated like term matches, and behave like leaves
* spans and intervals will allow subiteration
* label() should be getQuery(), and will return the parent query at the top
level, and a TermQuery for terms at the subiteration level
I'll work on a patch including Span subiteration and post it here. Interval
subiteration will require a bit more work, so I'll open a separate issue for
that.
> 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
> Reporter: Alan Woodward
> Assignee: Alan Woodward
> Priority: Major
> Attachments: LUCENE-8306.patch, LUCENE-8306.patch, LUCENE-8306.patch
>
>
> 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.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]