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.Analysis.LowerCaseTokenizer Class Reference

LowerCaseTokenizer performs the function of LetterTokenizer and LowerCaseFilter together. It divides text at non-letters and converts them to lower case. While it is functionally equivalent to the combination of LetterTokenizer and LowerCaseFilter, there is a performance advantage to doing the two tasks at once, hence this (redundant) implementation. Note: this does a decent job for most European languages, but does a terrible job for some Asian languages, where words are not separated by spaces. More...

Inherits Lucene.Net.Analysis.LetterTokenizer.

Public Member Functions

 LowerCaseTokenizer (System.IO.TextReader @in)
 Construct a new LowerCaseTokenizer.
 
 LowerCaseTokenizer (AttributeSource source, System.IO.TextReader @in)
 Construct a new LowerCaseTokenizer using a given AttributeSource.
 
 LowerCaseTokenizer (AttributeFactory factory, System.IO.TextReader @in)
 Construct a new LowerCaseTokenizer using a given Lucene.Net.Util.AttributeSource.AttributeFactory.
 
- Public Member Functions inherited from Lucene.Net.Analysis.LetterTokenizer
 LetterTokenizer (System.IO.TextReader @in)
 Construct a new LetterTokenizer.
 
 LetterTokenizer (AttributeSource source, System.IO.TextReader @in)
 Construct a new LetterTokenizer using a given AttributeSource.
 
 LetterTokenizer (AttributeFactory factory, System.IO.TextReader @in)
 Construct a new LetterTokenizer using a given Lucene.Net.Util.AttributeSource.AttributeFactory.
 
- Public Member Functions inherited from Lucene.Net.Analysis.CharTokenizer
override bool IncrementToken ()
 Consumers (i.e., IndexWriter) use this method to advance the stream to the next token. Implementing classes must implement this method and update the appropriate Util.Attributes with the attributes of the next token.
 
override void End ()
 This method is called by the consumer after the last token has been consumed, after IncrementToken returned false (using the new TokenStream API). Streams implementing the old API should upgrade to use this feature. This method can be used to perform any end-of-stream operations, such as setting the final offset of a stream. The final offset of a stream might differ from the offset of the last token eg in case one or more whitespaces followed after the last token, but a WhitespaceTokenizer was used.
 
override void Reset (System.IO.TextReader input)
 Expert: Reset the tokenizer to a new reader. Typically, an analyzer (in its reusableTokenStream method) will use this to re-use a previously created tokenizer.
 

Additional Inherited Members

- Protected Member Functions inherited from Lucene.Net.Analysis.CharTokenizer
 CharTokenizer (System.IO.TextReader input)
 
 CharTokenizer (AttributeSource source, System.IO.TextReader input)
 
 CharTokenizer (AttributeFactory factory, System.IO.TextReader input)
 
- Properties inherited from Lucene.Net.Util.AttributeSource
virtual AttributeFactory Factory [get]
 Returns the used AttributeFactory.
 
virtual bool HasAttributes [get]
 Returns true, iff this AttributeSource has any attributes
 

Detailed Description

LowerCaseTokenizer performs the function of LetterTokenizer and LowerCaseFilter together. It divides text at non-letters and converts them to lower case. While it is functionally equivalent to the combination of LetterTokenizer and LowerCaseFilter, there is a performance advantage to doing the two tasks at once, hence this (redundant) implementation.

Note: this does a decent job for most European languages, but does a terrible job for some Asian languages, where words are not separated by spaces.

Definition at line 32 of file LowerCaseTokenizer.cs.

Constructor & Destructor Documentation

Lucene.Net.Analysis.LowerCaseTokenizer.LowerCaseTokenizer ( System.IO.TextReader @  in)

Construct a new LowerCaseTokenizer.

Definition at line 35 of file LowerCaseTokenizer.cs.

Lucene.Net.Analysis.LowerCaseTokenizer.LowerCaseTokenizer ( AttributeSource  source,
System.IO.TextReader @  in 
)

Construct a new LowerCaseTokenizer using a given AttributeSource.

Definition at line 41 of file LowerCaseTokenizer.cs.

Lucene.Net.Analysis.LowerCaseTokenizer.LowerCaseTokenizer ( AttributeFactory  factory,
System.IO.TextReader @  in 
)

Construct a new LowerCaseTokenizer using a given Lucene.Net.Util.AttributeSource.AttributeFactory.

Definition at line 47 of file LowerCaseTokenizer.cs.


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