Class KeywordRepeatFilter
This TokenFilter emits each incoming token twice once as keyword and once non-keyword, in other words once with
IsKeyword set to true
and once set to false
.
This is useful if used with a stem filter that respects the KeywordAttribute to index the stemmed and the
un-stemmed version of a term into the same field.
Implements
System.IDisposable
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Lucene.Net.Analysis.Miscellaneous
Assembly: Lucene.Net.Analysis.Common.dll
Syntax
public sealed class KeywordRepeatFilter : TokenFilter, IDisposable
Constructors
| Improve this Doc View SourceKeywordRepeatFilter(TokenStream)
Construct a token stream filtering the given input.
Declaration
public KeywordRepeatFilter(TokenStream input)
Parameters
Type | Name | Description |
---|---|---|
TokenStream | input |
Methods
| Improve this Doc View SourceIncrementToken()
Declaration
public override bool IncrementToken()
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
| Improve this Doc View SourceReset()
Declaration
public override void Reset()
Overrides
Implements
System.IDisposable