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