Show / Hide Table of Contents

    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

    Inheritance
    System.Object
    AttributeSource
    TokenStream
    TokenFilter
    DelimitedPayloadTokenFilter
    Implements
    IDisposable
    Inherited Members
    TokenFilter.m_input
    TokenFilter.End()
    TokenFilter.Dispose(Boolean)
    TokenFilter.Reset()
    TokenStream.Dispose()
    AttributeSource.GetAttributeFactory()
    AttributeSource.GetAttributeClassesEnumerator()
    AttributeSource.GetAttributeImplsEnumerator()
    AttributeSource.AddAttributeImpl(Attribute)
    AttributeSource.AddAttribute<T>()
    AttributeSource.HasAttributes
    AttributeSource.HasAttribute<T>()
    AttributeSource.GetAttribute<T>()
    AttributeSource.ClearAttributes()
    AttributeSource.CaptureState()
    AttributeSource.RestoreState(AttributeSource.State)
    AttributeSource.GetHashCode()
    AttributeSource.Equals(Object)
    AttributeSource.ReflectAsString(Boolean)
    AttributeSource.ReflectWith(IAttributeReflector)
    AttributeSource.CloneAttributes()
    AttributeSource.CopyTo(AttributeSource)
    AttributeSource.ToString()
    Namespace: Lucene.Net.Analysis.Payloads
    Assembly: Lucene.Net.Analysis.Common.dll
    Syntax
    public sealed class DelimitedPayloadTokenFilter : TokenFilter, IDisposable

    Constructors

    | Improve this Doc View Source

    DelimitedPayloadTokenFilter(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 Source

    DEFAULT_DELIMITER

    Declaration
    public const char DEFAULT_DELIMITER = null
    Field Value
    Type Description
    System.Char

    Methods

    | Improve this Doc View Source

    IncrementToken()

    Declaration
    public override bool IncrementToken()
    Returns
    Type Description
    System.Boolean
    Overrides
    TokenStream.IncrementToken()

    Implements

    IDisposable

    See Also

    IPayloadEncoder
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)