ft.info


目录

The FT.INFO command provides information about an index. Variants of the command are available in cluster mode to aggregate index information across the cluster.

FT.INFO <index-name>
  [LOCAL | PRIMARY | CLUSTER]
  [ALLSHARDS | SOMESHARDS]
  [CONSISTENT | INCONSISTENT]

RESPONSE

Response when LOCAL is specified

The LOCAL response contains both the definition of the index as well as the status of that index on the node that executes the command.

An array of key value pairs.

The following four fields are only present when the index has at least one TEXT attribute.

The following field is always present:

NUMERIC Field Type Extension

TAG Field Type Extension

TEXT Field Type Extension

VECTOR Field Type Extension

FLAT VECTOR Field Type Extension.

HNSW VECTOR Field Type Extension.

Response when the PRIMARY option is specified.

An array of key value pairs

Totals are summed over the primaries that responded. With SOMESHARDS, a primary that does not respond is omitted, so totals may be lower than the full cluster's.

Inside MULTI/EXEC or a Lua script, no other nodes are queried and the LOCAL response is returned instead.

Response when the CLUSTER option is specified

An array of key value pairs

Totals, minimums and maximums are computed over the nodes that responded. With SOMESHARDS, a node that does not respond is omitted, so totals may be lower than the full cluster's.

Inside MULTI/EXEC or a Lua script, no other nodes are queried and the LOCAL response is returned instead.


版本号 #2
由 壳壳虫 创建于 2026-10-31 15:13:33 UTC
由 壳壳虫 更新于 2026-10-31 15:13:34 UTC