apache / apache/lucene

Add PassageBuilder to help construct highlights using MatchesIterator [LUCENE-8401]

Open
#9,448 7 comments 0 reactions 1 assignee Claimed by @romseygeek View on GitHub
legacy-jira-priority:Major module:highlighter type:enhancement
Dominant language
Java
Stars
3.6k
Forks
1.4k
Avg merge
2d 11h
Merged PRs (30d)
88

Description

Jim and I discussed a while back the idea of adding highlighter components, rather than a fully-fledged highlighter, which would allow users to build their own specialised highlighters.  To that end, I'd like to add a PassageBuilder class that uses the Matches API to break text up into passages containing hits.

---
Migrated from [LUCENE-8401](https://issues.apache.org/jira/browse/LUCENE-8401) by Alan Woodward (@romseygeek), updated Jul 23 2018
Attachments: [LUCENE-8401.patch](https://apache.github.io/lucene-jira-archive/attachments/LUCENE-8401/LUCENE-8401.patch) (versions: 2)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.