Skip to content

Commit 99f4f9a

Browse files
committed
Snippets improved
1 parent 8f77f4e commit 99f4f9a

3 files changed

Lines changed: 523 additions & 593 deletions

File tree

common/src/java/com/github/oeuvres/alix/lucene/output/DocSpanHighlighter.java renamed to common/src/java/com/github/oeuvres/alix/lucene/output/DocSnipHiliter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
* {@link #highlight}.
7171
* </p>
7272
*/
73-
public final class DocSpanHighlighter
73+
public final class DocSnipHiliter
7474
{
7575
/** Emitted first at a given offset: span opens before its first pivot mark. */
7676
private static final int PRI_WBR_START = 0;
@@ -121,7 +121,7 @@ private record Event(int offset, int priority, String tag)
121121
* @throws IOException on rewrite failure
122122
* @throws NullPointerException if {@code searcher} or {@code spanQuery} is {@code null}
123123
*/
124-
public DocSpanHighlighter(final IndexSearcher searcher, final SpanQuery spanQuery) throws IOException
124+
public DocSnipHiliter(final IndexSearcher searcher, final SpanQuery spanQuery) throws IOException
125125
{
126126
this.searcher = Objects.requireNonNull(searcher, "searcher");
127127
Objects.requireNonNull(spanQuery, "spanQuery");

0 commit comments

Comments
 (0)