@upstash/redis client. The @upstash/search-redis package wraps your existing node-redis client and exposes the full Redis Search API.
Installation
Setup
REDIS_URL should be your Upstash Redis connection string in the format:
Create an Index
Get an Index Client
Usesearch.index() to get a client for an existing index without making a Redis call:
Add Data
Add data using standard Redis commands via your node-redis client. Any key matching the index prefix is automatically indexed:Search Data
Wait for Indexing
Index updates are batched for performance. UsewaitIndexing() when you need queries to reflect recent writes:
Describe an Index
Drop an Index
The adapter exposes the exact same search API as
@upstash/redis. Refer to the Index Management, Querying, Aggregations, and Schema Definition pages for the full API reference.