# Optimize Searches for your app with Algolia

To ensure that your Shoppy app's search is optimized, it's recommended that you perform a simple operation from the Algolia dashboard.

Go to **Indexes -> shoppy\_products -> Configuration**\
Select **Deduplication and grouping** in the bar on the right

In the "**Distinct**" section, select "True" from the dropdown, and in the **"Attribute for Distinct**" **Section**, select the **ID** value.

![](https://2580671618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJPDzUzynACRbcxkhAEeE%2Fuploads%2FwoIskbF4MqPxNBKgOWx1%2FSchermata%25202021-03-09%2520alle%252009.31.34.png?alt=media\&token=85d67e2a-accc-4f38-a27f-c43d35ec43d3)

Click "**Review and Save Settings"** in the bottom left area, so that a prompt will appear. In the prompt, activate the "Copy these settings to other indices and/or replicas" and select the **"To all replicas of "shoppy\_products"** option." Click "**Save Settings**" to activate the Algolia x Shoppy to configuration.&#x20;

![](https://2580671618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJPDzUzynACRbcxkhAEeE%2Fuploads%2FSqg6Sh4MZqb2iTw68eFT%2FSchermata%25202021-03-09%2520alle%252009.33.40.png?alt=media\&token=b2209754-ad47-4e46-bb52-10174f639ed2)

### Create the Query Suggestions Index

From the main Algolia dashboard, go to the "**Query Suggestions**" section and click on the "**New Query Suggestions Index**".&#x20;

In the source index field, enter **shoppy\_products** and in the name field enter **shoppy\_products\_query\_suggestions**

Click on the "**Accept and Continue**" button.

![](https://2580671618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJPDzUzynACRbcxkhAEeE%2Fuploads%2F8HzyD3YlInX1AcBLfHsz%2FSchermata%25202021-03-09%2520alle%252010.32.22.png?alt=media\&token=426f5588-08e9-4975-8563-0387cb88153c)
