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 | Properties | List of all members
Lucene.Net.Search.Highlight.SimpleFragmenter Class Reference

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
 

Detailed Description

IFragmenter implementation which breaks text up into same-size fragments with no concerns over spotting sentence boundaries.

<author> mark@.nosp@m.sear.nosp@m.chare.nosp@m.a.co.nosp@m..uk </author>

Definition at line 30 of file SimpleFragmenter.cs.

Constructor & Destructor Documentation

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.

Member Function Documentation

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.

Property Documentation

int Lucene.Net.Search.Highlight.SimpleFragmenter.FragmentSize
getset

Gets or sets the size in number of characters of each fragment

Definition at line 82 of file SimpleFragmenter.cs.


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