Class SimpleSpanFragmenter
IFragmenter implementation which breaks text up into same-size
fragments but does not split up
Inheritance
System.Object
SimpleSpanFragmenter
Implements
Namespace: Lucene.Net.Search.Highlight
Assembly: Lucene.Net.Highlighter.dll
Syntax
public class SimpleSpanFragmenter : object, IFragmenter
Constructors
| Improve this Doc View SourceSimpleSpanFragmenter(QueryScorer)
Declaration
public SimpleSpanFragmenter(QueryScorer queryScorer)
Parameters
Type | Name | Description |
---|---|---|
QueryScorer | queryScorer | QueryScorer that was used to score hits |
SimpleSpanFragmenter(QueryScorer, Int32)
Declaration
public SimpleSpanFragmenter(QueryScorer queryScorer, int fragmentSize)
Parameters
Type | Name | Description |
---|---|---|
QueryScorer | queryScorer | QueryScorer that was used to score hits |
System.Int32 | fragmentSize | size in bytes of each fragment |
Methods
| Improve this Doc View SourceIsNewFragment()
Declaration
public virtual bool IsNewFragment()
Returns
Type | Description |
---|---|
System.Boolean |
See Also
| Improve this Doc View SourceStart(String, TokenStream)
Declaration
public virtual void Start(string originalText, TokenStream tokenStream)
Parameters
Type | Name | Description |
---|---|---|
System.String | originalText | |
TokenStream | tokenStream |