Class SimpleSpanFragmenter
IFragmenter implementation which breaks text up into same-size fragments but does not split up Spans. This is a simple sample class.
Inheritance
System.Object
SimpleSpanFragmenter
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Lucene.Net.Search.Highlight
Assembly: Lucene.Net.Highlighter.dll
Syntax
public class SimpleSpanFragmenter : 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 |