Documentation

Listing and inspecting the indexes#

> FT._LIST
1) "idx:movie"
> FT.INFO "idx:movie"

 1) "index_name"
 2) "idx:movie"
 ...
 5) "index_definition"
 ...
 7) "fields"
 ...
9) "num_docs"
10) "4"
...

Updating your Indexing#

> FT.ALTER idx:movie SCHEMA ADD plot TEXT WEIGHT 0.5
"OK"
> FT.SEARCH idx:movie "empire @genre:{Action}" RETURN 2 title plot

Dropping the Index#

> FT.DROPINDEX idx:movie

"OK"
>SCAN 0 MATCH movie:*

1) "0"
2) 1) "movie:11002"
   2) "movie:11004"
   3) "movie:11003"
   4) "movie:11005"
NOTE
Last updated on Feb 27, 2024