Class DelimitedPayloadTokenFilter
Characters before the delimiter are the "token", those after are the payload.
For example, if the delimiter is '|', then for the string "foo|bar", foo is the token and "bar" is a payload.
Note, you can also include a IPayloadEncoder to convert the payload in an appropriate way (from characters to bytes).
Note make sure your Tokenizer doesn't split on the delimiter, or this won't work
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.Payloads
Assembly: Lucene.Net.Analysis.Common.dll
Syntax
public sealed class DelimitedPayloadTokenFilter : TokenFilter, IDisposable
Constructors
| Improve this Doc View SourceDelimitedPayloadTokenFilter(TokenStream, Char, IPayloadEncoder)
Declaration
public DelimitedPayloadTokenFilter(TokenStream input, char delimiter, IPayloadEncoder encoder)
Parameters
Type | Name | Description |
---|---|---|
TokenStream | input | |
System.Char | delimiter | |
IPayloadEncoder | encoder |
Fields
| Improve this Doc View SourceDEFAULT_DELIMITER
Declaration
public const char DEFAULT_DELIMITER = '|'
Field Value
Type | Description |
---|---|
System.Char |
Methods
| Improve this Doc View SourceIncrementToken()
Declaration
public override bool IncrementToken()
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
Implements
System.IDisposable