Lucene.Net
3.0.3
Lucene.Net is a port of the Lucene search engine library, written in C# and targeted at .NET runtime users.
|
IFragmenter implementation which does not fragment the text. This is useful for highlighting the entire content of a document or field. More...
Inherits Lucene.Net.Search.Highlight.IFragmenter.
Public Member Functions | |
virtual 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(). | |
virtual 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. | |
IFragmenter implementation which does not fragment the text. This is useful for highlighting the entire content of a document or field.
Definition at line 26 of file NullFragmenter.cs.
|
virtual |
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 31 of file NullFragmenter.cs.
|
virtual |
Initializes the Fragmenter. You can grab references to the Attributes you are interested in from tokenStream and then access the values in isNewFragment().
originalText | the original source text |
param name="tokenStream">tokenStream the TokenStream to be fragmented
Implements Lucene.Net.Search.Highlight.IFragmenter.
Definition at line 28 of file NullFragmenter.cs.