Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
他们下面的文档说它是 O(n),但没有指定 n 是什么。如果索引中没有文档,则搜索可能会非常慢。这没有任何意义,不是吗?
https://oss.redislabs.com/redisearch/Commands.html#complexity_6
n 是结果集中结果的数量,基本上找到所有具有特定术语的文档是 O(1),然后需要扫描所有这些文档以从 redis 哈希加载文档数据并返回它们。