Class CustomEntityAlias

java.lang.Object
com.azure.search.documents.indexes.models.CustomEntityAlias
All Implemented Interfaces:
com.azure.json.JsonSerializable<CustomEntityAlias>

public final class CustomEntityAlias extends Object implements com.azure.json.JsonSerializable<CustomEntityAlias>
A complex object that can be used to specify alternative spellings or synonyms to the root entity name.
  • Constructor Details

    • CustomEntityAlias

      public CustomEntityAlias(String text)
      Creates an instance of CustomEntityAlias class.
      Parameters:
      text - the text value to set.
  • Method Details

    • getText

      public String getText()
      Get the text property: The text of the alias.
      Returns:
      the text value.
    • isCaseSensitive

      public Boolean isCaseSensitive()
      Get the caseSensitive property: Determine if the alias is case sensitive.
      Returns:
      the caseSensitive value.
    • setCaseSensitive

      public CustomEntityAlias setCaseSensitive(Boolean caseSensitive)
      Set the caseSensitive property: Determine if the alias is case sensitive.
      Parameters:
      caseSensitive - the caseSensitive value to set.
      Returns:
      the CustomEntityAlias object itself.
    • isAccentSensitive

      public Boolean isAccentSensitive()
      Get the accentSensitive property: Determine if the alias is accent sensitive.
      Returns:
      the accentSensitive value.
    • setAccentSensitive

      public CustomEntityAlias setAccentSensitive(Boolean accentSensitive)
      Set the accentSensitive property: Determine if the alias is accent sensitive.
      Parameters:
      accentSensitive - the accentSensitive value to set.
      Returns:
      the CustomEntityAlias object itself.
    • getFuzzyEditDistance

      public Integer getFuzzyEditDistance()
      Get the fuzzyEditDistance property: Determine the fuzzy edit distance of the alias.
      Returns:
      the fuzzyEditDistance value.
    • setFuzzyEditDistance

      public CustomEntityAlias setFuzzyEditDistance(Integer fuzzyEditDistance)
      Set the fuzzyEditDistance property: Determine the fuzzy edit distance of the alias.
      Parameters:
      fuzzyEditDistance - the fuzzyEditDistance value to set.
      Returns:
      the CustomEntityAlias object itself.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<CustomEntityAlias>
      Throws:
      IOException
    • fromJson

      public static CustomEntityAlias fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of CustomEntityAlias from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of CustomEntityAlias 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 CustomEntityAlias.