Show / Hide Table of Contents

    Class PatternKeywordMarkerFilter

    Marks terms as keywords via the KeywordAttribute. Each token that matches the provided pattern is marked as a keyword by setting IsKeyword to true.

    Inheritance
    System.Object
    AttributeSource
    TokenStream
    TokenFilter
    KeywordMarkerFilter
    PatternKeywordMarkerFilter
    Implements
    IDisposable
    Inherited Members
    KeywordMarkerFilter.IncrementToken()
    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 PatternKeywordMarkerFilter : KeywordMarkerFilter, IDisposable

    Constructors

    | Improve this Doc View Source

    PatternKeywordMarkerFilter(TokenStream, Regex)

    Create a new PatternKeywordMarkerFilter, that marks the current token as a keyword if the tokens term buffer matches the provided via the KeywordAttribute.

    Declaration
    public PatternKeywordMarkerFilter(TokenStream in, Regex pattern)
    Parameters
    Type Name Description
    TokenStream in

    TokenStream to filter

    Regex pattern

    the pattern to apply to the incoming term buffer

    Methods

    | Improve this Doc View Source

    IsKeyword()

    Declaration
    protected override bool IsKeyword()
    Returns
    Type Description
    System.Boolean
    Overrides
    KeywordMarkerFilter.IsKeyword()

    Implements

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