Share via


LexicalNormalizer Class

  • java.lang.Object
    • com.azure.search.documents.indexes.models.LexicalNormalizer

Implements

public class LexicalNormalizer
implements JsonSerializable<LexicalNormalizer>

Base type for normalizers.

Constructor Summary

Constructor Description
LexicalNormalizer(String name)

Creates an instance of LexicalNormalizer class.

Method Summary

Modifier and Type Method and Description
static LexicalNormalizer fromJson(JsonReader jsonReader)

Reads an instance of LexicalNormalizer from the JsonReader.

String getName()

Get the name property: The name of the normalizer.

String getOdataType()

Get the odataType property: A URI fragment specifying the type of normalizer.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

LexicalNormalizer

public LexicalNormalizer(String name)

Creates an instance of LexicalNormalizer class.

Parameters:

name - the name value to set.

Method Details

fromJson

public static LexicalNormalizer fromJson(JsonReader jsonReader)

Reads an instance of LexicalNormalizer from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of LexicalNormalizer if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

getName

public String getName()

Get the name property: The name of the normalizer. It must only contain letters, digits, spaces, dashes or underscores, can only start and end with alphanumeric characters, and is limited to 128 characters. It cannot end in '.microsoft' nor '.lucene', nor be named 'asciifolding', 'standard', 'lowercase', 'uppercase', or 'elision'.

Returns:

the name value.

getOdataType

public String getOdataType()

Get the odataType property: A URI fragment specifying the type of normalizer.

Returns:

the odataType value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to