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

Adrien Grand commented on LUCENE-8249:
--------------------------------------

I don't think we should modify ExactPhraseScorer to expose positions. Scorers 
are already quite complex because of two-phase iteration or the skipping of 
low-scoring documents, I would prefer that we duplicate the logic between the 
scorer and the matches iterator rather than having a single class that handles 
both.

> Add matches to exact PhraseQuery and MultiPhraseQuery
> -----------------------------------------------------
>
>                 Key: LUCENE-8249
>                 URL: https://issues.apache.org/jira/browse/LUCENE-8249
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Alan Woodward
>            Assignee: Alan Woodward
>            Priority: Major
>         Attachments: LUCENE-8249.patch
>
>
> ExactPhraseScorer can be rejigged fairly easily to expose a MatchesIterator



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to