Search module
Valkey Search indexes fields from Hashes or JSON documents. Use it for full-text search, attribute filtering, vector similarity, and aggregations.
Confirm the module configuration and required commands with your account support representative when arranging deployment with Momento Cache.
Features
- Search text, match tags, and filter numeric ranges.
- Combine search predicates to narrow results by multiple attributes.
- Filter, sort, group, and summarize results with aggregation pipelines.
Vector search
Search also provides vector indexing and similarity queries for embeddings and semantic retrieval. Choose HNSW for approximate nearest-neighbor search or FLAT for exact search. Combine vector queries with attribute filters to narrow the candidate set.
Vector search uses the same Search module as text and attribute search.
Key commands
Use these Valkey Search commands to identify the operations your application needs.
| Command | Purpose |
|---|---|
FT.CREATE | Create an index and define its fields. |
FT.SEARCH | Query an index, including vector similarity and filters. |
FT.AGGREGATE | Filter, sort, group, and summarize query results. |
FT.INFO | Inspect an index and its statistics. |
FT._LIST | List indexes. |
FT.DROPINDEX | Remove an index. |
Further reading
- Valkey Search overview: index behavior and supported query types.
- FT.CREATE reference: field schemas and vector index options.
- FT.SEARCH reference: query syntax and result options.
- FT.AGGREGATE reference: aggregation stages and reducers.