Class SimpleFragmenter
IFragmenter implementation which breaks text up into same-size fragments with no concerns over spotting sentence boundaries.
Implements
Inherited Members
Namespace: Lucene.Net.Search.Highlight
Assembly: Lucene.Net.Highlighter.dll
Syntax
public class SimpleFragmenter : IFragmenter
Constructors
SimpleFragmenter()
IFragmenter implementation which breaks text up into same-size fragments with no concerns over spotting sentence boundaries.
Declaration
public SimpleFragmenter()
SimpleFragmenter(int)
IFragmenter implementation which breaks text up into same-size fragments with no concerns over spotting sentence boundaries.
Declaration
public SimpleFragmenter(int fragmentSize)
Parameters
| Type | Name | Description |
|---|---|---|
| int | fragmentSize | size in number of characters of each fragment |
Properties
FragmentSize
Gets or Sets size in number of characters of each fragment
Declaration
public virtual int FragmentSize { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
Methods
IsNewFragment()
Declaration
public virtual bool IsNewFragment()
Returns
| Type | Description |
|---|---|
| bool |
Start(string, TokenStream)
Declaration
public virtual void Start(string originalText, TokenStream stream)
Parameters
| Type | Name | Description |
|---|---|---|
| string | originalText | |
| TokenStream | stream |