LuceneStandardTokenizerV2 Class
- java.
lang. Object - com.
azure. search. documents. indexes. models. LexicalTokenizer - com.
azure. search. documents. indexes. models. LuceneStandardTokenizerV2
- com.
- com.
public final class LuceneStandardTokenizerV2
extends LexicalTokenizer
Breaks text following the Unicode Text Segmentation rules. This tokenizer is implemented using Apache Lucene.
Constructor Summary
| Constructor | Description |
|---|---|
| LuceneStandardTokenizerV2(String name) |
Creates an instance of Lucene |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Lucene |
fromJson(JsonReader jsonReader)
Reads an instance of Lucene |
| Integer |
getMaxTokenLength()
Get the max |
| String |
getOdataType()
Get the odata |
|
Lucene |
setMaxTokenLength(Integer maxTokenLength)
Set the max |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from LexicalTokenizer
Methods inherited from java.lang.Object
Constructor Details
LuceneStandardTokenizerV2
public LuceneStandardTokenizerV2(String name)
Creates an instance of LuceneStandardTokenizerV2 class.
Parameters:
Method Details
fromJson
public static LuceneStandardTokenizerV2 fromJson(JsonReader jsonReader)
Reads an instance of LuceneStandardTokenizerV2 from the JsonReader.
Parameters:
Returns:
Throws:
getMaxTokenLength
public Integer getMaxTokenLength()
Get the maxTokenLength property: The maximum token length. Default is 255. 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:
LuceneStandardTokenizerV2.getOdataType()Returns:
setMaxTokenLength
public LuceneStandardTokenizerV2 setMaxTokenLength(Integer maxTokenLength)
Set the maxTokenLength property: The maximum token length. Default is 255. 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:
LuceneStandardTokenizerV2.toJson(JsonWriter jsonWriter)Parameters:
Throws: