Show / Hide Table of Contents

    Class TrimFilter

    Trims leading and trailing whitespace from Tokens in the stream.

    As of Lucene 4.4, this filter does not support updateOffsets=true anymore as it can lead to broken token streams.

    Inheritance
    System.Object
    AttributeSource
    TokenStream
    TokenFilter
    TrimFilter
    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.Miscellaneous
    Assembly: Lucene.Net.Analysis.Common.dll
    Syntax
    public sealed class TrimFilter : TokenFilter, IDisposable

    Constructors

    | Improve this Doc View Source

    TrimFilter(LuceneVersion, TokenStream)

    Create a new TrimFilter on top of in.

    Declaration
    public TrimFilter(LuceneVersion version, TokenStream in)
    Parameters
    Type Name Description
    LuceneVersion version
    TokenStream in
    | Improve this Doc View Source

    TrimFilter(LuceneVersion, TokenStream, Boolean)

    Create a new TrimFilter.

    Declaration
    public TrimFilter(LuceneVersion version, TokenStream in, bool updateOffsets)
    Parameters
    Type Name Description
    LuceneVersion version

    the Lucene match version

    TokenStream in

    the stream to consume

    System.Boolean updateOffsets

    whether to update offsets

    Methods

    | Improve this Doc View Source

    IncrementToken()

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

    Implements

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