Skip to content

Commit 6fdce0f

Browse files
committed
Let's rewrite spanWalker
1 parent 7b2faea commit 6fdce0f

14 files changed

Lines changed: 1058 additions & 964 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
import org.apache.lucene.search.ScoreMode;
2424

2525
import com.github.oeuvres.alix.lucene.spans.SpanMatch;
26-
import com.github.oeuvres.alix.lucene.spans.SpanWalker;
26+
import com.github.oeuvres.alix.lucene.spans.SpanWalkerDeprecated;
2727
import com.github.oeuvres.alix.util.IntIntMap;
2828

2929
/**
@@ -180,7 +180,7 @@ public String highlight(final int docId, final String content) throws IOExceptio
180180
* match there.
181181
*
182182
* <p>
183-
* Single-document counterpart of the multi-document loop in {@link SpanWalker}: locates the
183+
* Single-document counterpart of the multi-document loop in {@link SpanWalkerDeprecated}: locates the
184184
* leaf containing {@code docId} via {@link ReaderUtil#subIndex}, creates a fresh {@link Spans}
185185
* with {@link SpanWeight.Postings#OFFSETS}, and advances it to the local doc id. No caching:
186186
* each call allocates a new {@link Spans}, which is the correct shape for random-access

0 commit comments

Comments
 (0)