[フレーム]
Docs Pricing
Login Book a meeting Try Redis

FT.EXPLAIN

Syntax
FT.EXPLAIN index query 
 [DIALECT dialect]
Available in:
Redis Open Source / Search 1.0.0
Time complexity:
O(1)
ACL categories:
@search,

Return the execution plan for a complex query

Examples

Required arguments

index

is index name. You must first create the index using FT.CREATE.

query

is query string, as if sent to FT.SEARCH`.

Optional arguments

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.

Notes:
  • In the returned response, a + on a term is an indication of stemming.
  • Use redis-cli --raw to properly read line-breaks in the returned response.

Examples

Return the execution plan for a complex query
$ 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}
 }
}

Return information

One of the following:

See also

FT.CREATE | FT.SEARCH | FT.CONFIG SET

RediSearch

RATE THIS PAGE
Back to top ↑

AltStyle によって変換されたページ (->オリジナル) /