Fully managed and integrated with Google Cloud, Azure, and AWS.
Build the fastest, most reliable GenAI apps with our advanced vector database.
Self-managed software with enterprise-grade compliance and reliability.
Synchronize data in near-real time to make data fast—without writing code.
In-memory database for caching & streaming.
FT.EXPLAIN index query [DIALECT dialect]
@search
,
Return the execution plan for a complex query
index
is index name. You must first create the index using FT.CREATE
.
query
is query string, as if sent to FT.SEARCH`.
DIALECT {dialect_version}
is dialect version under which to execute the query. If not specified, the query executes under the default dialect version set during module initial loading or via FT.CONFIG SET
command.
+
on a term is an indication of stemming.redis-cli --raw
to properly read line-breaks in the returned response.FT.EXPLAIN returns a string representing the execution plan.
$ redis-cli --raw
127.0.0.1:6379> FT.EXPLAIN rd "(foo bar)|(hello world) @date:[100 200]|@date:[500 +inf]"
INTERSECT {
UNION {
INTERSECT {
foo
bar
}
INTERSECT {
hello
world
}
}
UNION {
NUMERIC {100.000000 <= x <= 200.000000}
NUMERIC {500.000000 <= x <= inf}
}
}
FT.CREATE
| FT.SEARCH
| FT.CONFIG SET