LuceneStandardAnalyzer Class
- java.
lang. Object - com.
azure. search. documents. indexes. models. LexicalAnalyzer - com.
azure. search. documents. indexes. models. LuceneStandardAnalyzer
- com.
- com.
public final class LuceneStandardAnalyzer
extends LexicalAnalyzer
Standard Apache Lucene analyzer; Composed of the standard tokenizer, lowercase filter and stop filter.
Constructor Summary
| Constructor | Description |
|---|---|
| LuceneStandardAnalyzer(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 |
| List<String> |
getStopwords()
Get the stopwords property: A list of stopwords. |
|
Lucene |
setMaxTokenLength(Integer maxTokenLength)
Set the max |
|
Lucene |
setStopwords(List<String> stopwords)
Set the stopwords property: A list of stopwords. |
|
Lucene |
setStopwords(String[] stopwords)
Set the stopwords property: A list of stopwords. |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from LexicalAnalyzer
Methods inherited from java.lang.Object
Constructor Details
LuceneStandardAnalyzer
public LuceneStandardAnalyzer(String name)
Creates an instance of LuceneStandardAnalyzer class.
Parameters:
Method Details
fromJson
public static LuceneStandardAnalyzer fromJson(JsonReader jsonReader)
Reads an instance of LuceneStandardAnalyzer 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: A URI fragment specifying the type of analyzer.
Overrides:
LuceneStandardAnalyzer.getOdataType()Returns:
getStopwords
public List<String> getStopwords()
Get the stopwords property: A list of stopwords.
Returns:
setMaxTokenLength
public LuceneStandardAnalyzer 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:
setStopwords
public LuceneStandardAnalyzer setStopwords(List<String> stopwords)
Set the stopwords property: A list of stopwords.
Parameters:
Returns:
setStopwords
public LuceneStandardAnalyzer setStopwords(String[] stopwords)
Set the stopwords property: A list of stopwords.
Parameters:
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
LuceneStandardAnalyzer.toJson(JsonWriter jsonWriter)Parameters:
Throws: