KeywordTokenizerV2 Class
- java.
lang. Object - com.
azure. search. documents. indexes. models. LexicalTokenizer - com.
azure. search. documents. indexes. models. KeywordTokenizerV2
- com.
- com.
public final class KeywordTokenizerV2
extends LexicalTokenizer
Emits the entire input as a single token. This tokenizer is implemented using Apache Lucene.
Constructor Summary
| Constructor | Description |
|---|---|
| KeywordTokenizerV2(String name) |
Creates an instance of Keyword |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Keyword |
fromJson(JsonReader jsonReader)
Reads an instance of Keyword |
| Integer |
getMaxTokenLength()
Get the max |
| String |
getOdataType()
Get the odata |
|
Keyword |
setMaxTokenLength(Integer maxTokenLength)
Set the max |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from LexicalTokenizer
Methods inherited from java.lang.Object
Constructor Details
KeywordTokenizerV2
public KeywordTokenizerV2(String name)
Creates an instance of KeywordTokenizerV2 class.
Parameters:
Method Details
fromJson
public static KeywordTokenizerV2 fromJson(JsonReader jsonReader)
Reads an instance of KeywordTokenizerV2 from the JsonReader.
Parameters:
Returns:
Throws:
getMaxTokenLength
public Integer getMaxTokenLength()
Get the maxTokenLength property: The maximum token length. Default is 256. Tokens longer than the maximum length are split. The maximum token length that can be used is 300 characters.
Returns:
getOdataType
public String getOdataType()
Get the odataType property: The discriminator for derived types.
Overrides:
KeywordTokenizerV2.getOdataType()Returns:
setMaxTokenLength
public KeywordTokenizerV2 setMaxTokenLength(Integer maxTokenLength)
Set the maxTokenLength property: The maximum token length. Default is 256. Tokens longer than the maximum length are split. The maximum token length that can be used is 300 characters.
Parameters:
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
KeywordTokenizerV2.toJson(JsonWriter jsonWriter)Parameters:
Throws: