This capability is a part of Redis Stack Search and query

Searching and querying Redis data

Discord Github

The enhanced Redis experience with Redis Stack provides querying capabilities, secondary indexing, full-text search, vector similarity search, and more. To use these features, you first declare indexes on your Redis data, and then you use the query language to retrieve the data your application requires. All future data will also be indexed automatically.

Primary features

Redis Stack supports the following search and query features:

  • Secondary indexing
  • Multi-field queries
  • Aggregation
  • Full-text indexing of multiple fields in a document
  • Incremental indexing without performance loss
  • Document ranking (provided manually by the user at index time)
  • Boolean queries with AND, OR, and NOT operators between subqueries
  • Optional query clauses
  • Prefix-based searches
  • Field weights
  • Auto-complete and fuzzy prefix suggestions
  • Exact phrase search and slop-based search
  • Stemming-based query expansion for many languages using Snowball
  • Support for custom functions for query expansion and scoring (see Extensions)
  • Numeric filters and ranges
  • Geo-filtering using Redis geo commands
  • Vector similarity search for semantic search using exact and approximate algorithms
  • Unicode support (UTF-8 input required)
  • Retrieval of full document contents or only their IDs
  • Document deletion and updating with index garbage collection

JSON documents

When combined with the Redis Stack's JSON support, Redis can index and query JSON documents.

To learn how to search and query your JSON documents, see Indexing JSON documents.

Cluster support

The search and query features of Redis Stack are also available for distributed databases that can scale to billions of documents and hundreds of servers.

Commercial support

Commercial support for Redis Stack is provided by Redis Ltd. See the Redis Ltd. website for more details and contact information.

Supported platforms

Redis Stack is developed and tested on Linux and macOS on x86_64 CPUs.

Atom CPUs are not supported.

References

Videos

  1. RediSearch? - RedisConf 2020
  2. RediSearch Overview - RedisConf 2019
  3. RediSearch & CRDT - Redis Day Tel Aviv 2019

Course

Blog posts

  1. Introducing RediSearch 2.0
  2. Getting Started with RediSearch 2.0
  3. Mastering RediSearch / Part I
  4. Mastering RediSearch / Part II
  5. Mastering RediSearch / Part III
  6. Building Real-Time Full-Text Site Search with RediSearch
  7. RediSearch Version 1.6 Adds Features, Improves Performance
  8. RediSearch 1.6 Boosts Performance Up to 64%

Mailing list / forum

Got questions? Feel free to ask at the Search and Query forum.

License

Redis Source Available License 2.0 (RSALv2) or the Server Side Public License v1 (SSPLv1) - see LICENSE

Rate this page