Class SimpleSpanFragmenter
IFragmenter implementation which breaks text up into same-size fragments but does not split up Lucene.Net.Search.Spans.Spans. This is a simple sample class.
Implements
Inherited Members
Namespace: Lucene.Net.Search.Highlight
Assembly: Lucene.Net.Highlighter.dll
Syntax
public class SimpleSpanFragmenter : IFragmenter
Constructors
SimpleSpanFragmenter(QueryScorer)
IFragmenter implementation which breaks text up into same-size fragments but does not split up Lucene.Net.Search.Spans.Spans. This is a simple sample class.
Declaration
public SimpleSpanFragmenter(QueryScorer queryScorer)
Parameters
Type | Name | Description |
---|---|---|
QueryScorer | queryScorer | QueryScorer that was used to score hits |
SimpleSpanFragmenter(QueryScorer, int)
IFragmenter implementation which breaks text up into same-size fragments but does not split up Lucene.Net.Search.Spans.Spans. This is a simple sample class.
Declaration
public SimpleSpanFragmenter(QueryScorer queryScorer, int fragmentSize)
Parameters
Type | Name | Description |
---|---|---|
QueryScorer | queryScorer | QueryScorer that was used to score hits |
int | fragmentSize | size in bytes of each fragment |
Methods
IsNewFragment()
IFragmenter implementation which breaks text up into same-size fragments but does not split up Lucene.Net.Search.Spans.Spans. This is a simple sample class.
Declaration
public virtual bool IsNewFragment()
Returns
Type | Description |
---|---|
bool |
See Also
Start(string, TokenStream)
IFragmenter implementation which breaks text up into same-size fragments but does not split up Lucene.Net.Search.Spans.Spans. This is a simple sample class.
Declaration
public virtual void Start(string originalText, TokenStream tokenStream)
Parameters
Type | Name | Description |
---|---|---|
string | originalText | |
TokenStream | tokenStream |