【问题标题】:use redisearch with openresty将 redisearch 与 openresty 一起使用
【发布时间】:2020-07-05 19:21:46
【问题描述】:

我想使用 openresty 连接到redisearch
Lua 没有可用的特定clients,所以我想使用原生的lua-resty-redis

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

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

【问题讨论】:

    标签: redis openresty redisearch


    【解决方案1】:

    回复自己:

    我在redis.lua添加了这个功能

    function _M.ftsearch(self, ...)
        return _do_cmd(self, "ft.search", ...)
    end
    

    【讨论】:

      猜你喜欢
      • 2021-06-12
      • 2019-03-17
      • 1970-01-01
      • 1970-01-01
      • 2022-11-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多