Udostępnij za pośrednictwem


KeepTokenFilter Class

Definition

A token filter that only keeps tokens with text contained in a specified list of words. This token filter is implemented using Apache Lucene. http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/miscellaneous/KeepWordFilter.html

[Newtonsoft.Json.JsonObject("#Microsoft.Azure.Search.KeepTokenFilter")]
public class KeepTokenFilter : Microsoft.Azure.Search.Models.TokenFilter
[<Newtonsoft.Json.JsonObject("#Microsoft.Azure.Search.KeepTokenFilter")>]
type KeepTokenFilter = class
    inherit TokenFilter
Public Class KeepTokenFilter
Inherits TokenFilter
Inheritance
KeepTokenFilter
Attributes
Newtonsoft.Json.JsonObjectAttribute

Constructors

KeepTokenFilter()

Initializes a new instance of the KeepTokenFilter class.

KeepTokenFilter(String, IList<String>, Nullable<Boolean>)

Initializes a new instance of the KeepTokenFilter class.

Properties

KeepWords

Gets or sets the list of words to keep.

LowerCaseKeepWords

Gets or sets a value indicating whether to lower case all words first. Default is false.

Name

Gets or sets the name of the token filter. It must only contain letters, digits, spaces, dashes or underscores, can only start and end with alphanumeric characters, and is limited to 128 characters.

(Inherited from TokenFilter)

Methods

Validate()

Validate the object.

Applies to