SemanticField Class

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

Implements

public final class SemanticField
implements JsonSerializable<SemanticField>

A field that is used as part of the semantic configuration.

Constructor Summary

Constructor Description
SemanticField(String fieldName)

Creates an instance of SemanticField class.

Method Summary

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

Reads an instance of SemanticField from the JsonReader.

String getFieldName()

Get the fieldName property: The fieldName property.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

SemanticField

public SemanticField(String fieldName)

Creates an instance of SemanticField class.

Parameters:

fieldName - the fieldName value to set.

Method Details

fromJson

public static SemanticField fromJson(JsonReader jsonReader)

Reads an instance of SemanticField from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of SemanticField 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.

getFieldName

public String getFieldName()

Get the fieldName property: The fieldName property.

Returns:

the fieldName value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to