Reputation: 3315
I have an issue with the Algolia's advanced syntax and highlighted results. When I put a single quote char "Apostrophe" (') in the request, it does match my records but the result isn't highlighted unless I escape the single quote char.
In the following example, I only have one record in my index. The advanced syntax is on and title attribute is searchable.
When I type the title in the query, the highlight seems to be good.
When I put double quotes around the query (to activate exact match from the advanced syntax) it does match the result but the title isn't highlighted.
BUT if I escape the single quote with a backslash it does highlight it!
Is that a bug from Algolia (since I'm using there own query system)? Did I misconfigured something?
It seems weird to me to escape some chars and if it would be the case, shouldn't Algolia do it? Or which chars should I escape?
Any help would be greatly appreciated!
Upvotes: 1
Views: 289
Reputation: 3315
TL;DR It's a bug from Algolia being fixed
I've just got an answer from Algolia's support team, here it is
You did in fact, find a highlighting bug, and we have created an issue (tracked it internally as ticket 2473)
We will keep you informed when the issue is fixed.
So as they said, I'll keep you updated when I will.
Upvotes: 0