
io.redisearch.client.AutoCompleter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jredisearch Show documentation
Show all versions of jredisearch Show documentation
Official client for Redis Search
The newest version!
package io.redisearch.client;
import redis.clients.jedis.commands.ProtocolCommand;
import redis.clients.jedis.util.SafeEncoder;
/**
* TODO: Abstract auto-complete commands
*/
public class AutoCompleter {
public enum Command implements ProtocolCommand {
SUGADD("FT.SUGADD"),
SUGGET("FT.SUGGET"),
SUGDEL("FT.SUGDEL"),
SUGLEN("FT.SUGLEN");
private final byte[] raw;
Command(String alt) {
raw = SafeEncoder.encode(alt);
}
@Override
public byte[] getRaw() {
return raw;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy