lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alan Woodward (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LUCENE-8306) Allow iteration over the term positions of a Match
Date Fri, 18 May 2018 10:24:00 GMT

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

Alan Woodward commented on LUCENE-8306:
---------------------------------------

I think of it more as adding flexibility.  With this API you can either highlight whole matches,
or individual parts of matches, or any combination in between that you like.  And it's a pretty
minimal addition - one extra method and a FunctionInterface.  And seeing as the whole point
of the Matches API is to help highlighting, I think it's worth it?

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


Mime
View raw message