Show / Hide Table of Contents

    Class PositionFilter

    Set the positionIncrement of all tokens to the "positionIncrement", except the first return token which retains its original positionIncrement value. The default positionIncrement value is zero.

    Inheritance
    System.Object
    AttributeSource
    TokenStream
    TokenFilter
    PositionFilter
    Implements
    IDisposable
    Inherited Members
    TokenFilter.m_input
    TokenFilter.End()
    TokenFilter.Dispose(Boolean)
    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.Position
    Assembly: Lucene.Net.Analysis.Common.dll
    Syntax
    public sealed class PositionFilter : TokenFilter, IDisposable

    Constructors

    | Improve this Doc View Source

    PositionFilter(TokenStream)

    Constructs a PositionFilter that assigns a position increment of zero to all but the first token from the given input stream.

    Declaration
    public PositionFilter(TokenStream input)
    Parameters
    Type Name Description
    TokenStream input

    the input stream

    | Improve this Doc View Source

    PositionFilter(TokenStream, Int32)

    Constructs a PositionFilter that assigns the given position increment to all but the first token from the given input stream.

    Declaration
    public PositionFilter(TokenStream input, int positionIncrement)
    Parameters
    Type Name Description
    TokenStream input

    the input stream

    System.Int32 positionIncrement

    position increment to assign to all but the first token from the input stream

    Methods

    | Improve this Doc View Source

    IncrementToken()

    Declaration
    public override bool IncrementToken()
    Returns
    Type Description
    System.Boolean
    Overrides
    TokenStream.IncrementToken()
    | Improve this Doc View Source

    Reset()

    Declaration
    public override void Reset()
    Overrides
    TokenFilter.Reset()

    Implements

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