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.De.GermanStemFilter Class Reference

A filter that stems German words. It supports a table of words that should not be stemmed at all. The stemmer used can be changed at runtime after the filter object is created (as long as it is a GermanStemmer). More...

Inherits Lucene.Net.Analysis.TokenFilter.

Public Member Functions

 GermanStemFilter (TokenStream _in)
 
 GermanStemFilter (TokenStream _in, bool useDin2Stemmer)
 
 GermanStemFilter (TokenStream _in, ISet< string > exclusiontable)
 Builds a GermanStemFilter that uses an exclusiontable.
 
 GermanStemFilter (TokenStream _in, ISet< string > exclusiontable, bool normalizeDin2)
 Builds a GermanStemFilter that uses an exclusiontable.
 
override bool IncrementToken ()
 
void SetStemmer (GermanStemmer stemmer)
 Set a alternative/custom GermanStemmer for this filter.
 
void SetExclusionTable (ISet< string > exclusiontable)
 Set an alternative exclusion list for this filter.
 
- Public Member Functions inherited from Lucene.Net.Analysis.TokenFilter
override void End ()
 Performs end-of-stream operations, if any, and calls then end() on the input TokenStream.NOTE: Be sure to call super.end() first when overriding this method.
 
override void Reset ()
 Reset the filter as well as the input TokenStream.
 
- Public Member Functions inherited from Lucene.Net.Analysis.TokenStream
void Close ()
 Releases resources associated with this stream.
 
void Dispose ()
 
- Public Member Functions inherited from Lucene.Net.Util.AttributeSource
 AttributeSource ()
 An AttributeSource using the default attribute factory AttributeSource.AttributeFactory.DEFAULT_ATTRIBUTE_FACTORY.
 
 AttributeSource (AttributeSource input)
 An AttributeSource that uses the same attributes as the supplied one.
 
 AttributeSource (AttributeFactory factory)
 An AttributeSource using the supplied AttributeFactory for creating new IAttribute instances.
 
virtual IEnumerable< Type > GetAttributeTypesIterator ()
 Returns a new iterator that iterates the attribute classes in the same order they were added in. Signature for Java 1.5: public Iterator<Class<? extends Attribute>> getAttributeClassesIterator()
 
virtual IEnumerable< AttributeGetAttributeImplsIterator ()
 Returns a new iterator that iterates all unique Attribute implementations. This iterator may contain less entries that GetAttributeTypesIterator, if one instance implements more than one Attribute interface. Signature for Java 1.5: public Iterator<AttributeImpl> getAttributeImplsIterator()
 
virtual void AddAttributeImpl (Attribute att)
 Expert: Adds a custom AttributeImpl instance with one or more Attribute interfaces.
 
virtual T AddAttribute< T > ()
 The caller must pass in a Class<? extends Attribute> value. This method first checks if an instance of that class is already in this AttributeSource and returns it. Otherwise a new instance is created, added to this AttributeSource and returned.
 
virtual bool HasAttribute< T > ()
 The caller must pass in a Class<? extends Attribute> value. Returns true, iff this AttributeSource contains the passed-in Attribute.
 
virtual T GetAttribute< T > ()
 The caller must pass in a Class<? extends Attribute> value. Returns the instance of the passed in Attribute contained in this AttributeSource
 
virtual void ClearAttributes ()
 Resets all Attributes in this AttributeSource by calling Attribute.Clear() on each Attribute implementation.
 
virtual State CaptureState ()
 Captures the state of all Attributes. The return value can be passed to RestoreState to restore the state of this or another AttributeSource.
 
virtual void RestoreState (State state)
 Restores this state by copying the values of all attribute implementations that this state contains into the attributes implementations of the targetStream. The targetStream must contain a corresponding instance for each argument contained in this state (e.g. it is not possible to restore the state of an AttributeSource containing a TermAttribute into a AttributeSource using a Token instance as implementation).
 
override int GetHashCode ()
 
override bool Equals (System.Object obj)
 
override System.String ToString ()
 
virtual AttributeSource CloneAttributes ()
 Performs a clone of all Attribute instances returned in a new AttributeSource instance. This method can be used to e.g. create another TokenStream with exactly the same attributes (using AttributeSource(AttributeSource))
 

Additional Inherited Members

- Protected Member Functions inherited from Lucene.Net.Analysis.TokenFilter
override void Dispose (bool disposing)
 
- 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

A filter that stems German words. It supports a table of words that should not be stemmed at all. The stemmer used can be changed at runtime after the filter object is created (as long as it is a GermanStemmer).

Definition at line 35 of file GermanStemFilter.cs.

Constructor & Destructor Documentation

Lucene.Net.Analysis.De.GermanStemFilter.GermanStemFilter ( TokenStream  _in)

Definition at line 45 of file GermanStemFilter.cs.

Lucene.Net.Analysis.De.GermanStemFilter.GermanStemFilter ( TokenStream  _in,
bool  useDin2Stemmer 
)

Definition at line 49 of file GermanStemFilter.cs.

Lucene.Net.Analysis.De.GermanStemFilter.GermanStemFilter ( TokenStream  _in,
ISet< string >  exclusiontable 
)

Builds a GermanStemFilter that uses an exclusiontable.

Parameters
_in
exclusiontable

Definition at line 58 of file GermanStemFilter.cs.

Lucene.Net.Analysis.De.GermanStemFilter.GermanStemFilter ( TokenStream  _in,
ISet< string >  exclusiontable,
bool  normalizeDin2 
)

Builds a GermanStemFilter that uses an exclusiontable.

Parameters
_in
exclusiontable
normalizeDin2Specifies if the DIN-2007-2 style stemmer should be used in addition to DIN1. This will cause words with 'ae', 'ue', or 'oe' in them (expanded umlauts) to be first converted to 'a', 'u', and 'o' respectively, before the DIN1 stemmer is invoked.

Definition at line 70 of file GermanStemFilter.cs.

Member Function Documentation

override bool Lucene.Net.Analysis.De.GermanStemFilter.IncrementToken ( )
virtual
Returns
Returns true for next token in the stream, or false at EOS

Implements Lucene.Net.Analysis.TokenStream.

Definition at line 81 of file GermanStemFilter.cs.

void Lucene.Net.Analysis.De.GermanStemFilter.SetExclusionTable ( ISet< string >  exclusiontable)

Set an alternative exclusion list for this filter.

Parameters
exclusiontable

Definition at line 118 of file GermanStemFilter.cs.

void Lucene.Net.Analysis.De.GermanStemFilter.SetStemmer ( GermanStemmer  stemmer)

Set a alternative/custom GermanStemmer for this filter.

Parameters
stemmer

Definition at line 106 of file GermanStemFilter.cs.


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