[
https://issues.apache.org/jira/browse/LUCENE-8158?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16352268#comment-16352268
]
Alan Woodward commented on LUCENE-8158:
---------------------------------------
This patch adds an OffsetProducer abstraction which handles offsets for an
individual Query. Clients can call UnifiedHighlighter.getOffsetProducer(Query)
to get one, and then call .getFieldOffsets() to get the offsets for a
particular document and field.
I've tried to keep the API change as minimal as possible, which means keeping a
reference to the UnifiedHighlighter and calling back to overrideable methods to
create Automata lists and PhraseHelpers, but ideally we could pull all this
into the OffsetProducer as well, and have the overrideable methods there.
> Expose OffsetsEnum directly from UnifiedHighlighter
> ---------------------------------------------------
>
> Key: LUCENE-8158
> URL: https://issues.apache.org/jira/browse/LUCENE-8158
> Project: Lucene - Core
> Issue Type: Improvement
> Components: modules/highlighter
> Reporter: Alan Woodward
> Assignee: Alan Woodward
> Priority: Major
> Attachments: LUCENE-8158.patch
>
>
> Now that OffestsEnum is unitary, we can expose it directly from the
> UnifiedHighlighter, allowing clients to use them in place of snippets.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]