org.apache.lucene.search.vectorhighlight
Interface BoundaryScanner
- All Known Implementing Classes:
- BreakIteratorBoundaryScanner, SimpleBoundaryScanner
public interface BoundaryScanner
findStartOffset
int findStartOffset(StringBuilder buffer,
int start)
- Scan backward to find end offset.
- Parameters:
buffer
- scanned objectstart
- start offset to begin
- Returns:
- the found start offset
findEndOffset
int findEndOffset(StringBuilder buffer,
int start)
- Scan forward to find start offset.
- Parameters:
buffer
- scanned objectstart
- start offset to begin
- Returns:
- the found end offset