[英]use redisearch with openresty
我想使用 openresty 连接到redisearch 。
Lua 没有可用的特定客户端,所以我想使用原生的lua-resty-redis
我怎样才能用 lua 执行这个 redis 命令?
127.0.0.1:6379> FT.SEARCH myIdx "hello world" LIMIT 0 10
回复自己:
我在redis.lua 中添加了这个函数
function _M.ftsearch(self, ...)
return _do_cmd(self, "ft.search", ...)
end
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.