0

我想使用 openresty 连接到redisearch
Lua没有可用的特定客户端,所以我想使用本机lua-resty-redis

我如何用 lua 执行这个 redis 命令?

127.0.0.1:6379> FT.SEARCH myIdx "hello world" LIMIT 0 10
4

1 回答 1

0

回复自己:

我在redis.lua中添加了这个函数

function _M.ftsearch(self, ...)
    return _do_cmd(self, "ft.search", ...)
end
于 2020-03-25T12:47:52.680 回答