StopAnalyzer Class
- java.
lang. Object - com.
azure. search. documents. indexes. models. LexicalAnalyzer - com.
azure. search. documents. indexes. models. StopAnalyzer
- com.
- com.
public final class StopAnalyzer
extends LexicalAnalyzer
Divides text at non-letters; Applies the lowercase and stopword token filters. This analyzer is implemented using Apache Lucene.
Constructor Summary
| Constructor | Description |
|---|---|
| StopAnalyzer(String name) |
Creates an instance of Stop |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Stop |
fromJson(JsonReader jsonReader)
Reads an instance of Stop |
| String |
getOdataType()
Get the odata |
| List<String> |
getStopwords()
Get the stopwords property: A list of stopwords. |
|
Stop |
setStopwords(List<String> stopwords)
Set the stopwords property: A list of stopwords. |
|
Stop |
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
StopAnalyzer
public StopAnalyzer(String name)
Creates an instance of StopAnalyzer class.
Parameters:
Method Details
fromJson
public static StopAnalyzer fromJson(JsonReader jsonReader)
Reads an instance of StopAnalyzer from the JsonReader.
Parameters:
Returns:
Throws:
getOdataType
public String getOdataType()
Get the odataType property: A URI fragment specifying the type of analyzer.
Overrides:
StopAnalyzer.getOdataType()Returns:
getStopwords
public List<String> getStopwords()
Get the stopwords property: A list of stopwords.
Returns:
setStopwords
public StopAnalyzer setStopwords(List<String> stopwords)
Set the stopwords property: A list of stopwords.
Parameters:
Returns:
setStopwords
public StopAnalyzer setStopwords(String[] stopwords)
Set the stopwords property: A list of stopwords.
Parameters:
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
StopAnalyzer.toJson(JsonWriter jsonWriter)Parameters:
Throws: