Class AsciiFoldingTokenFilter

java.lang.Object
com.azure.search.documents.indexes.models.TokenFilter
com.azure.search.documents.indexes.models.AsciiFoldingTokenFilter

public final class AsciiFoldingTokenFilter extends TokenFilter
Converts alphabetic, numeric, and symbolic Unicode characters which are not in the first 127 ASCII characters (the "Basic Latin" Unicode block) into their ASCII equivalents, if such equivalents exist. This token filter is implemented using Apache Lucene.
  • Constructor Details

    • AsciiFoldingTokenFilter

      public AsciiFoldingTokenFilter(String name)
      Constructor of AsciiFoldingTokenFilter.
      Parameters:
      name - The name of the token filter. It must only contain letters, digits, spaces, dashes or underscores, can only start and end with alphanumeric characters, and is limited to 128 characters.
  • Method Details

    • isPreserveOriginal

      public Boolean isPreserveOriginal()
      Get the preserveOriginal property: A value indicating whether the original token will be kept. Default is false.
      Returns:
      the preserveOriginal value.
    • setPreserveOriginal

      public AsciiFoldingTokenFilter setPreserveOriginal(Boolean preserveOriginal)
      Set the preserveOriginal property: A value indicating whether the original token will be kept. Default is false.
      Parameters:
      preserveOriginal - the preserveOriginal value to set.
      Returns:
      the AsciiFoldingTokenFilter object itself.