MappingCharFilter Class
- java.
lang. Object - com.
azure. search. documents. indexes. models. CharFilter - com.
azure. search. documents. indexes. models. MappingCharFilter
- com.
- com.
public final class MappingCharFilter
extends CharFilter
A character filter that applies mappings defined with the mappings option. Matching is greedy (longest pattern matching at a given point wins). Replacement is allowed to be the empty string. This character filter is implemented using Apache Lucene.
Constructor Summary
| Constructor | Description |
|---|---|
| MappingCharFilter(String name, List<String> mappings) |
Creates an instance of Mapping |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Mapping |
fromJson(JsonReader jsonReader)
Reads an instance of Mapping |
| List<String> |
getMappings()
Get the mappings property: A list of mappings of the following format: "a=>b" (all occurrences of the character "a" will be replaced with character "b"). |
| String |
getOdataType()
Get the odata |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from CharFilter
Methods inherited from java.lang.Object
Constructor Details
MappingCharFilter
public MappingCharFilter(String name, List<String> mappings)
Creates an instance of MappingCharFilter class.
Parameters:
Method Details
fromJson
public static MappingCharFilter fromJson(JsonReader jsonReader)
Reads an instance of MappingCharFilter from the JsonReader.
Parameters:
Returns:
Throws:
getMappings
public List<String> getMappings()
Get the mappings property: A list of mappings of the following format: "a=>b" (all occurrences of the character "a" will be replaced with character "b").
Returns:
getOdataType
public String getOdataType()
Get the odataType property: A URI fragment specifying the type of char filter.
Overrides:
MappingCharFilter.getOdataType()Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
MappingCharFilter.toJson(JsonWriter jsonWriter)Parameters:
Throws: