saleor-apps-redis_apl/apps/search/docs/application-setup.md
Lukasz Ostrowski 21f0a60f07
Add search app (#108)
* Add Search App to apps

* Link eslint config to invoices

* Changesets
2023-02-08 09:28:14 +01:00

1.5 KiB

App Configuration

Required configuration options

Setting up those values is required by the application to work properly"

  • Application ID: ID of the Algolia application
  • Admin key: key required to update documents in the Algolia API
  • Search key: public key used by search preview

All can be found in your Algolia dashboard. Choose existing application or create new one. Then choose Overview from the menu on the left hand side. Below the welcome message you'll find link to the section with keys:

This view contains all the keys we'll need:

Now you can set it in the Search App configuration view and run reindexing operation.

Optional

  • Index prefix: App will create multiple indices. For testing purposes you might want to have separate indices with names starting with staging.

Algolia configuration

Grouping

To provide the most precise search results on variant level, Search app uploads each variant as separate document. Most likely you would like to group results by product. To achieve that, navigate to index settings:

At the menu on the left choose Deduplication and Grouping. Change value of distinct to true and set attribute as productId. If attribute is not there, make sure you already reindexed your products

After saving the changes variants will be displayed as single product: