org.elasticsearch.common.lucene.search.vectorhighlight
Class SimpleBoundaryScanner2
java.lang.Object
org.elasticsearch.common.lucene.search.vectorhighlight.SimpleBoundaryScanner2
- All Implemented Interfaces:
- org.apache.lucene.search.vectorhighlight.BoundaryScanner
public class SimpleBoundaryScanner2
- extends Object
- implements org.apache.lucene.search.vectorhighlight.BoundaryScanner
A copy of Lucene SimpleBoundaryScanner
.
Uses specialized char set to lookup boundary, and fixes a problem with start offset in the
beginning of the text: https://issues.apache.org/jira/browse/LUCENE-3697 (which has a problem
with multiple empty fields to highlight...).
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_MAX_SCAN
public static final int DEFAULT_MAX_SCAN
- See Also:
- Constant Field Values
DEFAULT_BOUNDARY_CHARS
public static final char[] DEFAULT_BOUNDARY_CHARS
DEFAULT
public static final SimpleBoundaryScanner2 DEFAULT
maxScan
public int maxScan
boundaryChars
public gnu.trove.set.hash.TCharHashSet boundaryChars
SimpleBoundaryScanner2
public SimpleBoundaryScanner2()
SimpleBoundaryScanner2
public SimpleBoundaryScanner2(int maxScan,
char[] boundaryChars)
findStartOffset
public int findStartOffset(StringBuilder buffer,
int start)
- Specified by:
findStartOffset
in interface org.apache.lucene.search.vectorhighlight.BoundaryScanner
findEndOffset
public int findEndOffset(StringBuilder buffer,
int start)
- Specified by:
findEndOffset
in interface org.apache.lucene.search.vectorhighlight.BoundaryScanner
Copyright © 2009-2012. All Rights Reserved.