Class SimpleFragmenter
IFragmenter implementation which breaks text up into same-size fragments with no concerns over spotting sentence boundaries.
Inheritance
System.Object
SimpleFragmenter
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 SimpleFragmenter : IFragmenter
Constructors
| Improve this Doc View SourceSimpleFragmenter()
Declaration
public SimpleFragmenter()
SimpleFragmenter(Int32)
Declaration
public SimpleFragmenter(int fragmentSize)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | fragmentSize | size in number of characters of each fragment |
Properties
| Improve this Doc View SourceFragmentSize
Gets or Sets size in number of characters of each fragment
Declaration
public virtual int FragmentSize { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
| Improve this Doc View SourceIsNewFragment()
Declaration
public virtual bool IsNewFragment()
Returns
Type | Description |
---|---|
System.Boolean |
Start(String, TokenStream)
Declaration
public virtual void Start(string originalText, TokenStream stream)
Parameters
Type | Name | Description |
---|---|---|
System.String | originalText | |
TokenStream | stream |