Class UaxUrlEmailTokenizer

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

public final class UaxUrlEmailTokenizer extends LexicalTokenizer
Tokenizes urls and emails as one token. This tokenizer is implemented using Apache Lucene.
  • Constructor Details

    • UaxUrlEmailTokenizer

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

    • getOdataType

      public String getOdataType()
      Get the odataType property: A URI fragment specifying the type of tokenizer.
      Overrides:
      getOdataType in class LexicalTokenizer
      Returns:
      the odataType value.
    • getMaxTokenLength

      public Integer getMaxTokenLength()
      Get the maxTokenLength property: The maximum token length. Default is 255. Tokens longer than the maximum length are split. The maximum token length that can be used is 300 characters.
      Returns:
      the maxTokenLength value.
    • setMaxTokenLength

      public UaxUrlEmailTokenizer setMaxTokenLength(Integer maxTokenLength)
      Set the maxTokenLength property: The maximum token length. Default is 255. Tokens longer than the maximum length are split. The maximum token length that can be used is 300 characters.
      Parameters:
      maxTokenLength - the maxTokenLength value to set.
      Returns:
      the UaxUrlEmailTokenizer 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<LexicalTokenizer>
      Overrides:
      toJson in class LexicalTokenizer
      Throws:
      IOException
    • fromJson

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