Show / Hide Table of Contents

    Interface IKeywordAttribute

    This attribute can be used to mark a token as a keyword. Keyword aware TokenStreams can decide to modify a token based on the return value of IsKeyword if the token is modified. Stemming filters for instance can use this attribute to conditionally skip a term if IsKeyword returns true.

    Inherited Members
    IAttribute.CopyTo(IAttribute)
    Namespace: Lucene.Net.Analysis.TokenAttributes
    Assembly: Lucene.Net.dll
    Syntax
    public interface IKeywordAttribute : IAttribute

    Properties

    | Improve this Doc View Source

    IsKeyword

    Gets or Sets whether the current token is a keyword. true if the current token is a keyword, otherwise false.

    Declaration
    bool IsKeyword { get; set; }
    Property Value
    Type Description
    System.Boolean
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)