Class LuceneStandardAnalyzer
- java.lang.Object
-
- com.azure.search.documents.indexes.models.LexicalAnalyzer
-
- com.azure.search.documents.indexes.models.LuceneStandardAnalyzer
-
public final class LuceneStandardAnalyzer extends LexicalAnalyzer
Standard Apache Lucene analyzer; Composed of the standard tokenizer, lowercase filter and stop filter.
-
-
Constructor Summary
Constructors Constructor Description LuceneStandardAnalyzer(String name)
Creates an instance of LuceneStandardAnalyzer class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Integer
getMaxTokenLength()
Get the maxTokenLength property: The maximum token length.List<String>
getStopwords()
Get the stopwords property: A list of stopwords.LuceneStandardAnalyzer
setMaxTokenLength(Integer maxTokenLength)
Set the maxTokenLength property: The maximum token length.LuceneStandardAnalyzer
setStopwords(String... stopwords)
Set the stopwords property: A list of stopwords.LuceneStandardAnalyzer
setStopwords(List<String> stopwords)
Set the stopwords property: A list of stopwords.-
Methods inherited from class com.azure.search.documents.indexes.models.LexicalAnalyzer
getName
-
-
-
-
Constructor Detail
-
LuceneStandardAnalyzer
public LuceneStandardAnalyzer(String name)
Creates an instance of LuceneStandardAnalyzer class.- Parameters:
name
- the name value to set.
-
-
Method Detail
-
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:
- the maxTokenLength value.
-
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:
maxTokenLength
- the maxTokenLength value to set.- Returns:
- the LuceneStandardAnalyzer object itself.
-
getStopwords
public List<String> getStopwords()
Get the stopwords property: A list of stopwords.- Returns:
- the stopwords value.
-
setStopwords
public LuceneStandardAnalyzer setStopwords(List<String> stopwords)
Set the stopwords property: A list of stopwords.- Parameters:
stopwords
- the stopwords value to set.- Returns:
- the LuceneStandardAnalyzer object itself.
-
setStopwords
public LuceneStandardAnalyzer setStopwords(String... stopwords)
Set the stopwords property: A list of stopwords.- Parameters:
stopwords
- the stopwords value to set.- Returns:
- the LuceneStandardAnalyzer object itself.
-
-