If this is the wrong forum I apologize in advance…
I downloaded the latest version of algoliasearch for Zendesk from Github on my Mac.
I ran the crawler and populated algolia with some records.
I added the app to Zendesk sandbox and when I search I can see in the developer console traffic going out to Algolia (200 Ok) but no results are being returned.
aka no hits in the response body.
The search term is correct and using the same search term returns results when searching in the index directly or using the demo interface.
Can anyone help me understand how/what to check why no hits are being returned when running it in zendesk?
I have implemented this before in a different company and I don’t see what I am doing wrong.
Any help appreciated.
It’s the good forum.
If the response is 200, there’s a chance there’s simply no records indexed in Algolia.
Do you see records in your dashboard ( https://www.algolia.com/dashboard ) on the index
Jeska, thank you for responding.
That is the weird part.
I have 4 records in the index and when searching for the word Beta in the index it returns hits. see image below
Index is zendesk_xxxxxx_articles
I ran the index.html test from the app folder and I see the network traffic going out…
Here is the request URL
And here is the response where you can see the query word “Beta” but 0 hits returning.
And I can see the same query in the Search API Logs in the index with the same results so it is hitting the index correctly.
While putting this all together I noticed that locale.locale shows
That does not look right. In the index it is “en-us”!
Where would that come from?
The locale is taken from the URL, it takes the second parameter.
If your URL doesn’t match the common pattern of Zendesk Help Centers of
/hc/<LOCALE>/..., then indeed it won’t work as-is.
Arghghgh, I was so fixated on the index.html…