I would like to use openresty to connect to redisearch .
The are no available specific clients for Lua, so i was thinking to use the native lua-resty-redis
How can i execute this redis command with lua?
127.0.0.1:6379> FT.SEARCH myIdx "hello world" LIMIT 0 10
reply to self:
i've added this function in redis.lua
function _M.ftsearch(self, ...)
return _do_cmd(self, "ft.search", ...)
end
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.