content/commands/ft.info.md
Returns information and statistics about a given index.
index
is the name of the given index. You must first create the index using [FT.CREATE]({{< relref "commands/ft.create/" >}}). You can also use an alias of index created using [FT.ALIASADD]({{< relref "commands/ft.aliasadd/" >}}) or [FT.ALIASUPDATE]({{< relref "commands/ft.aliasupdate/" >}}).
| Return field name | Definition |
|---|---|
index_name | The index name that was defined when index was created. |
index_options | The index options selected during FT.CREATE such as FILTER {filter}, LANGUAGE {default_lang}, etc. |
index_definition | Includes key_type, hash or JSON; prefixes, if any; and default_score. |
attributes | The index schema field names, types, and attributes. |
num_docs | The number of documents. |
max_doc_id | The maximum document ID. |
num_terms | The number of distinct terms. |
num_records | The total number of records. |
| Statistic | Definition |
|---|---|
inverted_sz_mb | The memory used by the inverted index, which is the core data structure used for searching in RediSearch. The size is given in megabytes. |
vector_index_sz_mb | The memory used by the vector index, which stores any vectors associated with each document. |
total_inverted_index_blocks | The total number of blocks in the inverted index. |
offset_vectors_sz_mb | The memory used by the offset vectors, which store positional information for terms in documents. |
doc_table_size_mb | The memory used by the document table, which contains metadata about each document in the index. |
sortable_values_size_mb | The memory used by sortable values, which are values associated with documents and used for sorting purposes. |
key_table_size_mb | The memory used by the key table, which stores the mapping between document IDs and Redis keys. |
geoshapes_sz_mb | The memory used by GEO-related fields. |
records_per_doc_avg | The average number of records (including deletions) per document. |
bytes_per_record_avg | The average size of each record in bytes. |
offsets_per_term_avg | The average number of offsets (position information) per term. |
offset_bits_per_record_avg | The average number of bits used for offsets per record. |
tag_overhead_sz_mb | The size of the TAG index structures used for optimising performance. |
text_overhead_sz_mb | The size of the TEXT index structures used for optimising performance. |
total_index_memory_sz_mb | The total memory consumed by all indexes in the DB. |
| Statistic | Definition |
|---|---|
hash_indexing_failures | The number of failures encountered during indexing. |
total_indexing_time | The cumulative wall-clock time spent indexing documents in ms. |
indexing | Indicates whether the index is currently being generated. |
percent_indexed | The percentage of the index that has been successfully generated (1 means 100%). |
number_of_uses | The number of times the index has been used. |
cleaning | The index deletion flag. A value of 1 indicates index deletion is in progress. |
| Statistic | Definition |
|---|---|
bytes_collected | The number of bytes collected during garbage collection. |
total_ms_run | The total time in milliseconds spent on garbage collection. |
total_cycles | The total number of garbage collection cycles. |
average_cycle_time_ms | The average time in milliseconds for each garbage collection cycle. The value nan indicates that the average cycle time is not available. |
last_run_time_ms | The time in milliseconds taken by the last garbage collection run. |
The next two GC-related fields are relevant in scenarios where simultaneous changes occurred in the same memory area for both the parent process and the child process, resulting in the parent discarding these changes.
| Statistic | Definition |
|---|---|
gc_numeric_trees_missed | The number of numeric tree nodes whose changes were discarded due to splitting by the parent process during garbage collection. |
gc_blocks_denied | The number of blocks whose changes were discarded (skipped) because they were modified by the parent process during the garbage collection. Notably, as inverted index blocks are append-only, only the last block of an inverted index can be skipped. |
| Statistic | Definition |
|---|---|
global_idle | The number of idle cursors in the system. |
global_total | The total number of cursors in the system. |
index_capacity | The maximum number of cursors allowed per index. |
index_total | The total number of cursors open on the index. |
indexing failures, last indexing error, and last indexing error key.indexing failures, last indexing error, and last indexing error key for each schema field.{{< highlight bash >}} 127.0.0.1:6379> ft.info idx:bicycle
| Redis Software | Redis Cloud Flexible & Annual | Redis Cloud Free & Fixed | <span style="min-width: 9em; display: table-cell">Notes</span> | |:----------------------|:-----------------|:-----------------|:------| | <span title="Supported">✅ Supported</span> | <span title="Supported">✅ Supported</span> | <span title="Supported">✅ Supported</nobr></span> | |
{{< multitabs id="ft-info-return-info" tab1="RESP2" tab2="RESP3" >}}
One of the following:
-tab-sep-
One of the following:
{{< /multitabs >}}
[FT.CREATE]({{< relref "commands/ft.create/" >}}) | [FT.SEARCH]({{< relref "commands/ft.search/" >}}) | [FT.ALIASADD]({{< relref "commands/ft.aliasadd/" >}}) | [FT.ALIASUPDATE]({{< relref "commands/ft.aliasupdate/" >}})
[RediSearch]({{< relref "/develop/ai/search-and-query/" >}})