Guides / Managing results / Troubleshooting

If search results aren’t what you expect them to be, you can investigate what’s happening with a two-step approach:

  1. Find out which search parameters are in use.
  2. Reproduce those search parameters in the dashboard.

This approach helps you understand why your search behaves a certain way and lets you test improvements and fixes.

Retrieve search parameters

The first step in troubleshooting is to clarify precisely the search parameters you sent to Algolia, to see what’s returned and ensure it matches your intent. Use your browser’s developer tools to check what data you sent in your search requests.

Open your browser’s developer tools and click Network. The next steps differ depending on your browser:

Chrome

  1. Set “algolia” as a filter.
  2. Enter your search request. You should see network requests to Algolia.
  3. Click the latest request.
  4. Click Payload
  5. Scroll to Form Data

Safari

  1. Change the network request type to XHR/Fetch (the default is All)
  2. Set “algolia” as a filter.
  3. Enter your search request. You should see network requests to Algolia.
  4. Click the latest queries request.
  5. Scroll to Request Data

Edge and Opera

  1. Change the network request type to Fetch/XHR (the default is All)
  2. Set “algolia” as a filter.
  3. Enter your search request. You should see network requests to Algolia.
  4. Click the latest queries… request.
  5. Click Payload
  6. Scroll to Form Data

Firefox

  1. Change the network request type to XHR (the default is All)
  2. Set “algolia” as a filter.
  3. Enter your search request. You should see network requests to Algolia.
  4. Click the latest POST request.
  5. Click Request

Check parameters in the browser developer tools

Examining search parameters with browser developer tools

  1. Check the index name. Is it correct?
  2. Check the query. Has your search app incorrectly changed it?
  3. Investigate parameters that can alter search results, for example, facetFilters. Check ruleContexts and filters which are other commonly used parameters that can alter search results. See the API documentation for the complete list of parameters.

With backend search, check the parameters sent with your request and the URL-encoded search parameters in the response.

Reproduce the search in Algolia’s dashboard

Use the dashboard to reproduce the same search queries and parameters that you tested in the browser. This process:

  • Helps determine if your code is changing search in an undesirable way by comparing results between your app and the dashboard.
  • Lets you test potential improvements on the dashboard.

How to reproduce search queries and parameters

Go to your index in the Algolia dashboard and click Add Query Parameter in the Browse tab.

  • Add tag, facet, and numeric filters in the Filters tab.
  • Add other search parameters as JSON in the Custom tab.

Where to enter custom search parameters

Did you find this page helpful?