Class KeepTokenFilter
A token filter that only keeps tokens with text contained in a specified list of words. This token filter is implemented using Apache Lucene.
Inherited Members
Namespace: System.Dynamic.ExpandoObject
Assembly: Azure.Search.Documents.dll
Syntax
public class KeepTokenFilter : Azure.Search.Documents.Indexes.Models.TokenFilter
Constructors
KeepTokenFilter(String, IEnumerable<String>)
Initializes a new instance of KeepTokenFilter.
Declaration
public KeepTokenFilter (string name, System.Collections.Generic.IEnumerable<string> keepWords);
Parameters
System.String
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. |
System.Collections.Generic.IEnumerable<System.String>
keepWords
The list of words to keep. |
Exceptions
System.ArgumentNullException
|
Properties
KeepWords
The list of words to keep.
Declaration
public System.Collections.Generic.IList<string> KeepWords { get; }
Property Value
System.Collections.Generic.IList<System.String>
|
LowerCaseKeepWords
A value indicating whether to lower case all words first. Default is false.
Declaration
public Nullable<bool> LowerCaseKeepWords { get; set; }
Property Value
System.Nullable<System.Boolean>
|