[
https://issues.apache.org/jira/browse/LUCENE-8249?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16435730#comment-16435730
]
Alan Woodward commented on LUCENE-8249:
---------------------------------------
I'm not sure this makes things that much more complex? It essentially just
splits the phraseFreq() method into two (reset() and nextMatch()), and then
adds a method which provides a view of the Scorer as a MatchesIterator which
uses the new methods directly rather than calling phraseFreq().
And duplicating the logic of ExactPhraseScorer won't be too hard, but
SloppyPhraseScorer is 600 lines long...
> 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: [email protected]
For additional commands, e-mail: [email protected]