|
Lucene.Net
3.0.3
Lucene.Net is a .NET port of the Java Lucene Indexing Library
|
IFragmenter implementation which breaks text up into same-size fragments with no concerns over spotting sentence boundaries. More...
Inherits Lucene.Net.Search.Highlight.IFragmenter.
Public Member Functions | |
| SimpleFragmenter () | |
| SimpleFragmenter (int fragmentSize) | |
| void | Start (String originalText, TokenStream stream) |
| bool | IsNewFragment () |
| Test to see if this token from the stream should be held in a new TextFragment. Every time this is called, the TokenStream passed to start(String, TokenStream) will have been incremented. | |
Public Member Functions inherited from Lucene.Net.Search.Highlight.IFragmenter | |
| void | Start (string originalText, TokenStream tokenStream) |
| Initializes the Fragmenter. You can grab references to the Attributes you are interested in from tokenStream and then access the values in isNewFragment(). | |
Properties | |
| int | FragmentSize [get, set] |
| Gets or sets the size in number of characters of each fragment | |
IFragmenter implementation which breaks text up into same-size fragments with no concerns over spotting sentence boundaries.
<author> mark@searcharea.co.uk </author>
Definition at line 30 of file SimpleFragmenter.cs.
| Lucene.Net.Search.Highlight.SimpleFragmenter.SimpleFragmenter | ( | ) |
Definition at line 37 of file SimpleFragmenter.cs.
| Lucene.Net.Search.Highlight.SimpleFragmenter.SimpleFragmenter | ( | int | fragmentSize | ) |
Definition at line 47 of file SimpleFragmenter.cs.
| bool Lucene.Net.Search.Highlight.SimpleFragmenter.IsNewFragment | ( | ) |
Test to see if this token from the stream should be held in a new TextFragment. Every time this is called, the TokenStream passed to start(String, TokenStream) will have been incremented.
Implements Lucene.Net.Search.Highlight.IFragmenter.
Definition at line 68 of file SimpleFragmenter.cs.
| void Lucene.Net.Search.Highlight.SimpleFragmenter.Start | ( | String | originalText, |
| TokenStream | stream | ||
| ) |
Definition at line 57 of file SimpleFragmenter.cs.
|
getset |
Gets or sets the size in number of characters of each fragment
Definition at line 82 of file SimpleFragmenter.cs.
1.8.3