> For the complete documentation index, see [llms.txt](https://docs-en.shoppy.is/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs-en.shoppy.is/shoppy-dashboard/integrations/algolia/optimize-searches-for-your-app-with-algolia.md).

# 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
