lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Smiley (JIRA)" <>
Subject [jira] [Commented] (LUCENE-8306) Allow iteration over the term positions of a Match
Date Thu, 10 May 2018 16:19:00 GMT


David Smiley commented on LUCENE-8306:

Aha; so this is the solution highlighters need.  A good start.  Do you think the concrete
class vs interface choice matters?  If it's an interface then in theory you could provide
a view into the PostingsEnum's payload & other stuff but the caller doesn't necessarily
have to call it.  This isn't a big deal though.  If you add getters instead of using public
final fields, it'd be easier to change later, and it's more standard style for a public API.

> Allow iteration over the term positions of a Match
> --------------------------------------------------
>                 Key: LUCENE-8306
>                 URL:
>             Project: Lucene - Core
>          Issue Type: New Feature
>            Reporter: Alan Woodward
>            Assignee: Alan Woodward
>            Priority: Major
>         Attachments: 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

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message