All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.redisearch.client.ConfigOption Maven / Gradle / Ivy

There is a newer version: 2.2.0
Show newest version
package io.redisearch.client;

import redis.clients.jedis.commands.ProtocolCommand;
import redis.clients.jedis.util.SafeEncoder;

public enum ConfigOption implements ProtocolCommand {
    NOGC("NOGC"),
    MINPREFIX("MINPREFIX"),
    MAXEXPANSIONS("MAXEXPANSIONS"),
    TIMEOUT("TIMEOUT"),
    ON_TIMEOUT("ON_TIMEOUT"),
    MIN_PHONETIC_TERM_LEN("MIN_PHONETIC_TERM_LEN"),
    ALL("*");
  
    private final byte[] raw;

    ConfigOption() {
      raw = SafeEncoder.encode(this.name());
    }
    
    ConfigOption(String name) {
        raw = SafeEncoder.encode(name);
    }

    @Override
    public byte[] getRaw() {
      return raw;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy