Redis Search
Redis Search is a
A rich query language
Full-text search
Geospatial queries
Aggregations
For searching first you have to create INDEXES
<indexName>
: The name of the index you are creating.[ON <structure>]
: Specifies the data structure to index, which can beHASH
(default) orJSON
if you're indexing JSON documents with RedisJSON.[PREFIX count <prefix> ...]
: Defines one or more key prefixes. Only keys that match the prefix(es) will be indexed.SCHEMA
: Followed by one or more field definitions.<field>
: The name of the field to index.<type>
: The type of the field (TEXT
,NUMERIC
,GEO
, orTAG
).
Last updated