Create a Search Database by navigating to the Search tab and clicking on the Create Database button.
A dialog with the following options will open:
Name: Type a name for your database (e.g. “product-search”).
Region: Choose the region for your database. For best performance, select the region closest to your application.We plan to support additional regions and cloud providers. Feel free to send your requests to support@upstash.com.
Once you’re done, click Next, choose a plan, and your Database is ready:
Navigate to the Data Browser section of your Database and click Upsert Documents:
A dialog with the following options will open:
Index: An index to group your data.If you plan to query all documents in one place, you only need one index (e.g. “product-search”). If you plan to add multi-tenancy, so that each user can only search their own data, for example, you can create one index per user (“user-1”, “user-2”, etc.).
ID: An automatically generated ID.
Content: The searchable data in JSON format.
Metadata: Optional information attached to this document.
More information about content and metadata can be found here.
That’s it! 🎉 You’ve just created your first serverless search database with Upstash Search!But this is just the beginning. Upstash Search also supports:
Advanced reranking
Fine-grained control over search results
Metadata-based filtering
We’ll get into those features in the next sections of this documentation. For now, you’ve already mastered the basics!