SearchModelFactory.KeepTokenFilter Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 static Azure.Search.Documents.Indexes.Models.KeepTokenFilter KeepTokenFilter(string name = default, System.Collections.Generic.IEnumerable<string> keepWords = default, bool? lowerCaseKeepWords = default);
static member KeepTokenFilter : string * seq<string> * Nullable<bool> -> Azure.Search.Documents.Indexes.Models.KeepTokenFilter
Public Shared Function KeepTokenFilter (Optional name As String = Nothing, Optional keepWords As IEnumerable(Of String) = Nothing, Optional lowerCaseKeepWords As Nullable(Of Boolean) = Nothing) As KeepTokenFilter
Parameters
- name
- String
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.
- keepWords
- IEnumerable<String>
The list of words to keep.
A value indicating whether to lower case all words first. Default is false.
Returns
A new KeepTokenFilter instance for mocking.