KeepTokenFilter Class
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. 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
- 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
Azure SDK for .NET