FT.CONFIG

Since 1.1.0Search

Syntax

FT.CONFIG
  • ACL categories: @read, @search, @slow
  • Arity: -1

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.

Subcommand
FT.CONFIG GETthe value of each setting whose name matches a pattern
FT.CONFIG SETchange a setting
FT.CONFIG HELPthe settings, each with its value

23 of RediSearch's settings can be read and set (FT.CONFIG HELP lists them), but only some are acted on: CURSOR_MAX_IDLE, MAXSEARCHRESULTS, TIMEOUT, ON_TIMEOUT, DEFAULT_SCORER, MINSTEMLEN and BM25STD_TANH_FACTOR; FT.CONFIG SET says what each does. The others are kept and reported. FT.CONFIG SET refuses any other name with Invalid option, and FT.CONFIG GET returns nothing for it. TIMEOUT, ON_TIMEOUT and MINSTEMLEN are also the server settings search-timeout, search-on-timeout and search-min-stem-len: one value under either name.

FT.CONFIG alone, or with a name that is not one of these, is an error.

Examples

> FT.CONFIG GET TIMEOUT
1) 1) "TIMEOUT"
   2) "0"
> FT.CONFIG
(error) Unknown subcommand
> FT.CONFIG NOPE
(error) Unknown subcommand

Subcommands

  • 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.