tencent cloud

Tencent Cloud Distributed Cache (Redis OSS-Compatible)

Search Module Family

Download
포커스 모드
폰트 크기
마지막 업데이트 시간: 2026-08-11 11:12:00
AI 번역

Command Introduction

The Search Module (valkey-search) provides full-text indexing and vector similarity search capabilities, embedding search engine functionality into the key space. This module is suitable for scenarios that require high-performance search and querying, such as product search (keyword + attribute filtering), vector semantic search in AI applications, and full-text log analysis. This module is supported starting from Valkey 8.0 and is not part of the Redis core command set. Its core commands can be categorized into the following three types based on their functions:
Index Management
FT.CREATE: Defines the index schema and supports creating inverted indexes (TEXT), numeric indexes (NUMERIC), tag indexes (TAG), and vector indexes (FLAT / HNSW) on Hash or JSON fields.
FT.DROPINDEX: Deletes an index, with the option to also delete the associated document data.
FT.INFO: Displays statistical information about an index, including the number of documents, field definitions, index size, and more.
FT._LIST: Lists all indexes in the current instance.
Full-Text Search and Hybrid Search
FT.SEARCH: Performs a hybrid search that combines full-text queries, range filtering, Tag matching, and vector nearest neighbor search, and supports features such as pagination, sorting, highlighting, and summarization.
Aggregation analysis
FT.AGGREGATE: Performs aggregation analysis operations such as grouping (GROUPBY), sorting (SORTBY), projection (APPLY), and filtering (FILTER) on query results, and supports building complex real-time data analysis pipelines.
For more information, see the Valkey official documentation: valkey-search module.

Command Support Overview

Index Management Commands: FT.CREATE, FT.DROPINDEX, FT.INFO, and FT._LIST are used to create, delete, view, and list full-text/vector search indexes. Both the Valkey 8.0 standard architecture and cluster architecture support these commands.
Query Commands: FT.SEARCH and FT.AGGREGATE are used to perform search and aggregation operations on indexes. These commands are supported by both the Valkey 8.0 standard architecture and cluster architecture.
Cross-Slot Restriction: In a cluster architecture, the Search Module operates on indexes across shards through an internal coordination mechanism, and therefore is not subject to the traditional single-key cross-slot restriction.

Command Compatibility Matrix

Command
Valkey 9.0 Standard Architecture
Valkey 9.0 Cluster Architecture
Valkey 8.0 Standard Architecture
Valkey 8.0 Cluster Architecture
ft.create
ft.search
ft.aggregate
ft.info
ft.dropindex
ft._list

도움말 및 지원

문제 해결에 도움이 되었나요?

피드백