Redisearch ft.mget命令对单个查询中的文档in数量没有固定的限制。ft.mget命令是Redisearch提供的一个批量查询命令,可以一次性获取多个文档的内容。它的语法如下:
FT.MGET [NOCONTENT] [VERBATIM] [NOCOUNT] [WITHPAYLOADS] [WITHSORTKEYS] [FILTER <filter>] [GEOFILTER <field> <lon> <lat> <radius> m|km|mi|ft] [INKEYS <num> <key> [<key> ...]] [INFIELDS <num> <field> [<field> ...]] [RETURN <num> <field> [<field> ...]] [SUMMARIZE [FIELDS <num> <field> [<field> ...]] [FRAGS <num>] [LEN <num>]] [HIGHLIGHT [FIELDS <num> <field> [<field> ...]] [TAGS <open> <close>]] [SLOP <slop>] [LANGUAGE <language>] [EXPANDER <expander>] [SCORER <scorer>] [PAYLOAD <payload>] [SORTBY <field> (ASC|DESC)] [LIMIT <offset> <num>] [INORDER] [RETURN <num> <field> [<field> ...]] [VERBATIM] [NOCONTENT] [NOSTOPWORDS] [WITHSCORES] [WITHPAYLOADS] [WITHSORTKEYS] [FILTER <filter>] [GEOFILTER <field> <lon> <lat> <radius> m|km|mi|ft] [INKEYS <num> <key> [<key> ...]] [INFIELDS <num> <field> [<field> ...]] [RETURN <num> <field> [<field> ...]] [SUMMARIZE [FIELDS <num> <field> [<field> ...]] [FRAGS <num>] [LEN <num>]] [HIGHLIGHT [FIELDS <num> <field> [<field> ...]] [TAGS <open> <close>]] [SLOP <slop>] [LANGUAGE <language>] [EXPANDER <expander>] [SCORER <scorer>] [PAYLOAD <payload>] [SORTBY <field> (ASC|DESC)] [LIMIT <offset> <num>] [INORDER]
在ft.mget命令中,可以通过指定多个key或者多个field来进行批量查询。每个key或field对应的文档数量没有明确的限制,可以根据实际需求进行设置。需要注意的是,查询的文档数量越多,查询的性能可能会受到影响,因此在实际使用中需要根据具体情况进行权衡和优化。
对于Redisearch的更多信息和使用方法,可以参考腾讯云的Redisearch产品介绍页面:Redisearch产品介绍
领取专属 10元无门槛券
手把手带您无忧上云