Share via


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.

public class KeepTokenFilter : Azure.Search.Documents.Indexes.Models.TokenFilter
type KeepTokenFilter = class
    inherit TokenFilter
Public Class KeepTokenFilter
Inherits TokenFilter
Inheritance
KeepTokenFilter

Constructors

KeepTokenFilter(String, IEnumerable<String>)

Initializes a new instance of KeepTokenFilter.

Properties

KeepWords

The list of words to keep.

LowerCaseKeepWords

A value indicating whether to lower case all words first. Default is false.

Name

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)

Applies to