Class MappingCharFilter
java.lang.Object
com.azure.search.documents.indexes.models.CharFilter
com.azure.search.documents.indexes.models.MappingCharFilter
- All Implemented Interfaces:
com.azure.json.JsonSerializable<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
ConstructorsConstructorDescriptionMappingCharFilter(String name, List<String> mappings) Creates an instance of MappingCharFilter class. -
Method Summary
Modifier and TypeMethodDescriptionstatic MappingCharFilterfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of MappingCharFilter from the JsonReader.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").Get the odataType property: A URI fragment specifying the type of char filter.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class CharFilter
getNameMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
MappingCharFilter
-
-
Method Details
-
getOdataType
Get the odataType property: A URI fragment specifying the type of char filter.- Overrides:
getOdataTypein classCharFilter- Returns:
- the odataType value.
-
getMappings
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<CharFilter>- Overrides:
toJsonin classCharFilter- Throws:
IOException
-
fromJson
Reads an instance of MappingCharFilter from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of MappingCharFilter if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the MappingCharFilter.
-