If appropriately configured, Grai has a powerful search function.
Search is setup for you with Grai cloud, making it easy to get started.
Grai search is powered by Algolia. To get started you will need to create an account on Algolia at https://www.algolia.com/users/sign_up (opens in a new tab).
You will need to set the following environment variables:
|This is your unique application identifier. It's used to identify you when using Algolia's API.
|This is the ADMIN API key. Please keep it secret and use it ONLY from your backend: this key is used to create, update and DELETE your indices. You can also use it to manage your API keys.
|This is the public API key to use in your frontend code. This key is only usable for search queries and sending data to the Insights API.
To index your existing content, you will need to run the following command:
python manage.py algolia_reindex
For more information about the Grai Algolia integration see https://www.algolia.com/doc/framework-integration/django/setup (opens in a new tab).