Available in: Redis Stack
Time complexity: O(1)
Returns the execution plan for a complex query.
In the returned response, a +
on a term is an indication of stemming.
FT.CONFIG SET
command.!!! tip
You should use redis-cli --raw
to properly read line-breaks in the returned response.
String Response. A string representing the execution plan (see above example).
$ 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}
}
}