Query
Queries (i.e., data queries) are the primary way to retrieve Redis data by matching to tags or attributes. Redis Query Engine supports concurrent, low-latency insertion and updates of documents.
Key query capabilities for Redis Query Engine include multi-field queries, query on JSON documents, boolean queries with AND, OR, and NOT operators between subqueries, optional query clauses, numeric filters and ranges, and geo-filtering using Redis geo commands.
2 query commands are available: FT.SEARCH and FT.AGGREGATE.
- FT.SEARCH to perform selections (i.e., return all documents that fulfill specific criteria) and projections (i.e., return specific fields of the result set or map to calculated field values) only. Learn more about exact match queries, range queries, geospatial queries, combined queries.
- Use FT.AGGREGATE command to apply mapping functions, group, or aggregate data to collect and summarize data across several fields. Learn more about aggregation queries.
Running a query on the ‘index:product’ index to return a list of all those that have the value ‘redis’ in the ‘brand’ field is very simple:




