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.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Pages
Public Member Functions | List of all members
Lucene.Net.Search.Highlight.NullFragmenter Class Reference

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.
 

Detailed Description

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.

Member Function Documentation

virtual bool Lucene.Net.Search.Highlight.NullFragmenter.IsNewFragment ( )
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 void Lucene.Net.Search.Highlight.NullFragmenter.Start ( string  originalText,
TokenStream  tokenStream 
)
virtual

Initializes the Fragmenter. You can grab references to the Attributes you are interested in from tokenStream and then access the values in isNewFragment().

Parameters
originalTextthe 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.


The documentation for this class was generated from the following file: