Class PrefixAwareTokenFilter
Joins two token streams and leaves the last token of the first stream available to be used when updating the token values in the second stream based on that token.
The default implementation adds last prefix token end offset to the suffix token start and end offsets.
NOTE: This filter might not behave correctly if used with custom IAttributes, i.e. IAttributes other than the ones located in Lucene.Net.Analysis.TokenAttributes.
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: Lucene.Net.Analysis.Common.dll
Syntax
[Serializable]
public class PrefixAwareTokenFilter : TokenStream, IDisposable
Constructors
Name | Description |
---|---|
PrefixAwareTokenFilter(TokenStream, TokenStream) |
Properties
Name | Description |
---|---|
Prefix | |
Suffix |
Methods
Name | Description |
---|---|
Dispose(Boolean) | |
End() | |
IncrementToken() | |
Reset() | |
UpdateSuffixToken(Token, Token) | The default implementation adds last prefix token end offset to the suffix token start and end offsets. |