Search

Indexes over hashes and JSON documents, searched by text, tag, number, geography and vector similarity, with aggregations and hybrid ranking (FT.*).

31 commands in KiviDB 1.2.2. Every command.

  • FT._LIST: Returns the names of the indexes of the selected database.
  • FT.AGGREGATE: Runs a query and transforms its results: groups them, reduces each group, computes new fields, filters and sorts.
  • FT.ALIASADD: Creates an alias for an index: a second name, usable wherever the index's name is.
  • FT.ALIASDEL: Deletes an alias made with FT.ALIASADD or FT.ALIASUPDATE.
  • FT.ALIASLIST: Returns the aliases that point at an index, the command Redis 8.10 added.
  • FT.ALIASUPDATE: Points alias at index.
  • FT.ALTER: Adds fields to an index.
  • FT.CONFIG: FT.CONFIG is a container: its subcommands read and set the search engine's settings, by the names RediSearch gives them, so that tools and clients that manage those settings work unchanged.
    • FT.CONFIG GET: Returns the value of each search setting whose name matches pattern: an exact name such as TIMEOUT, or a glob-style pattern, * for every setting.
    • FT.CONFIG HELP: Lists the search settings that FT.CONFIG GET and FT.CONFIG SET know, each with its current value.
    • FT.CONFIG SET: Sets a setting.
  • FT.CREATE: Creates a search index over the hashes, or JSON documents, whose keys start with the given prefixes.
  • FT.CURSOR: FT.CURSOR is a container: its subcommands read and close the cursors that FT.AGGREGATE ... WITHCURSOR opens, so that a large aggregation can be read a page at a time instead of in one reply.
    • FT.CURSOR DEL: Closes a cursor opened by FT.AGGREGATE ... WITHCURSOR before it has been read to the end, and frees the rows it holds.
    • FT.CURSOR READ: Returns the next rows of an aggregation started with WITHCURSOR, COUNT n at a time, and the cursor to read on with: 0 once there are no more, and the cursor is closed.
  • FT.DEBUG: Maintenance of search indexes.
    • FT.DEBUG COMPACT: Starts a compaction of an HNSW vector field: a rebuild in the background that drops the tombstones of deleted vectors.
  • FT.DICTADD: Adds words to a dictionary: a named list of words that FT.SPELLCHECK can use with TERMS INCLUDE or TERMS EXCLUDE.
  • FT.DICTDEL: Removes words from a dictionary made with FT.DICTADD.
  • FT.DICTDUMP: Returns every word of a dictionary made with FT.DICTADD, sorted, in lower case as they are stored.
  • FT.DROPINDEX: Deletes an index.
  • FT.EXPLAIN: Returns how a query is understood, as Redis writes a query plan: INTERSECT { ... }, UNION { ... }, NOT{ ... }, OPTIONAL{ ... }, TAG:@field { ... }, NUMERIC {lo <= @field <= hi}, VECTOR { ... }, a cla…
  • FT.EXPLAINCLI: FT.EXPLAIN, as an array of its lines.
  • FT.HYBRID: Searches an index by text and by vector together, and fuses the two rankings into one.
  • FT.INFO: Returns an index's definition and state: its key type and prefixes, its fields with their options, how many documents and terms it holds, and whether it is still indexing.
  • FT.PROFILE: Runs a query, SEARCH, AGGREGATE or HYBRID, and returns its result with a profile: total, parsing and lock-wait times, warnings, and the tree of iterators and result processors the query used.
  • FT.SEARCH: Searches an index and returns the matching documents.
  • FT.SPELLCHECK: Suggests spellings for the words of a query that are not in the index.
  • FT.SYNDUMP: Returns the synonym groups of an index, made with FT.SYNUPDATE, turned around: each word, followed by the groups it is in.
  • FT.SYNUPDATE: Creates or updates a synonym group of an index: words to be treated as the same.
  • FT.TAGVALS: Returns the distinct values of a TAG field across the documents an index holds, sorted.