# 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.

![](/files/e7YJSPCGys9YJV6Jp0QX)

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;

![](/files/DhiFDcM8NgVWXpnuRkmX)

### 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.

![](/files/jzpW1DtQFudou14K5o6Q)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs-en.shoppy.is/shoppy-dashboard/integrations/algolia/optimize-searches-for-your-app-with-algolia.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
