For developers5. Manage Index
#Listing and inspecting the indexes
The
FT._LIST command provides a list of all indexes in your database:FT.INFO provides information about a specific index:#Updating your Indexing
As you are build your application and add more information to the database you may need to add new fields to the index. The
FT.ALTER command enables you to do this.The
WEIGHT declares the importance of this field when calculating result accuracy. This is a multiplication factor (default is 1); so in this example the plot is less important than the title.Let's do a query with the new indexed field:
#Dropping the Index
You can drop an index using the
FT.DROPINDEX command.Dropping an index does not impact the indexed hashes, this means that the movies are still inside the database.
NOTEYou can delete the indexed document/hashes by adding theDDparameter.