Skip to main content

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.

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.

CommandPurpose
FT.CREATECreate an index and define its fields.
FT.SEARCHQuery an index, including vector similarity and filters.
FT.AGGREGATEFilter, sort, group, and summarize query results.
FT.INFOInspect an index and its statistics.
FT._LISTList indexes.
FT.DROPINDEXRemove an index.

Further reading​