Class SimpleBoundaryScanner
Simple boundary scanner implementation that divides fragments based on a set of separator characters.
Implements
Inherited Members
Namespace: Lucene.Net.Search.VectorHighlight
Assembly: Lucene.Net.Highlighter.dll
Syntax
public class SimpleBoundaryScanner : IBoundaryScanner
Constructors
SimpleBoundaryScanner()
Simple boundary scanner implementation that divides fragments based on a set of separator characters.
Declaration
public SimpleBoundaryScanner()
SimpleBoundaryScanner(char[])
Simple boundary scanner implementation that divides fragments based on a set of separator characters.
Declaration
public SimpleBoundaryScanner(char[] boundaryChars)
Parameters
Type | Name | Description |
---|---|---|
char[] | boundaryChars |
SimpleBoundaryScanner(int)
Simple boundary scanner implementation that divides fragments based on a set of separator characters.
Declaration
public SimpleBoundaryScanner(int maxScan)
Parameters
Type | Name | Description |
---|---|---|
int | maxScan |
SimpleBoundaryScanner(int, char[])
Simple boundary scanner implementation that divides fragments based on a set of separator characters.
Declaration
public SimpleBoundaryScanner(int maxScan, char[] boundaryChars)
Parameters
Type | Name | Description |
---|---|---|
int | maxScan | |
char[] | boundaryChars |
SimpleBoundaryScanner(int, ISet<char>)
Simple boundary scanner implementation that divides fragments based on a set of separator characters.
Declaration
public SimpleBoundaryScanner(int maxScan, ISet<char> boundaryChars)
Parameters
Type | Name | Description |
---|---|---|
int | maxScan | |
ISet<char> | boundaryChars |
Fields
DEFAULT_BOUNDARY_CHARS
Simple boundary scanner implementation that divides fragments based on a set of separator characters.
Declaration
public static readonly char[] DEFAULT_BOUNDARY_CHARS
Field Value
Type | Description |
---|---|
char[] |
DEFAULT_MAX_SCAN
Simple boundary scanner implementation that divides fragments based on a set of separator characters.
Declaration
public static readonly int DEFAULT_MAX_SCAN
Field Value
Type | Description |
---|---|
int |
m_boundaryChars
Simple boundary scanner implementation that divides fragments based on a set of separator characters.
Declaration
protected ISet<char> m_boundaryChars
Field Value
Type | Description |
---|---|
ISet<char> |
m_maxScan
Simple boundary scanner implementation that divides fragments based on a set of separator characters.
Declaration
protected int m_maxScan
Field Value
Type | Description |
---|---|
int |
Methods
FindEndOffset(StringBuilder, int)
Scan forward to find start offset.
Declaration
public virtual int FindEndOffset(StringBuilder buffer, int start)
Parameters
Type | Name | Description |
---|---|---|
StringBuilder | buffer | scanned object |
int | start | start offset to begin |
Returns
Type | Description |
---|---|
int | the found end offset |
FindStartOffset(StringBuilder, int)
Scan backward to find end offset.
Declaration
public virtual int FindStartOffset(StringBuilder buffer, int start)
Parameters
Type | Name | Description |
---|---|---|
StringBuilder | buffer | scanned object |
int | start | offset to begin |
Returns
Type | Description |
---|---|
int | the found start offset |