Class SpellCheckArgs

java.lang.Object
io.quarkus.redis.datasource.search.SpellCheckArgs
All Implemented Interfaces:
RedisCommandExtraArguments

public class SpellCheckArgs extends Object implements RedisCommandExtraArguments
  • Constructor Details

    • SpellCheckArgs

      public SpellCheckArgs()
  • Method Details

    • distance

      public SpellCheckArgs distance(int distance)
      Sets the maximum Levenshtein distance for spelling suggestions (default: 1, max: 4).
      Parameters:
      distance - the distance
      Returns:
      the current SpellCheckArgs
    • includes

      public SpellCheckArgs includes(String... dict)
      Specifies an inclusion of a custom dictionary named dict
      Parameters:
      dict - the dictionaries
      Returns:
      the current SpellCheckArgs
    • excludes

      public SpellCheckArgs excludes(String... dict)
      Specifies an exclusion of a custom dictionary named dict
      Parameters:
      dict - the dictionaries
      Returns:
      the current SpellCheckArgs
    • dialect

      public SpellCheckArgs dialect(int dialect)
      Selects the dialect version under which to execute the query. If not specified, the query will execute under the default dialect version set during module initial loading.
      Parameters:
      dialect - the dialect
      Returns:
      the current SpellCheckArgs
    • toArgs

      public List<Object> toArgs()
      Specified by:
      toArgs in interface RedisCommandExtraArguments
      Returns:
      the list of arguments.