Discover the future of the AI Stack with Algolia, be the first to see new platform demos and announcements, and get the most out of Algolia through interactive workshops.
How do I work around not wanting to highlight typos?
Updated
There isn't currently a way to specify "don't highlight" if there is a typo. You'd need to turn off typo tolerance, and prevent the match altogether, which will decrease the matches you get.
However, if you set getRankingInfo to true, you can see the nbTypos (number of typos) in the result. If you are writing your UI, you can make changes to the output based on this value. I.e, only highlight if nbTypos is 0. However, this would be a customization you'd need to make.
However, if you set getRankingInfo to true, you can see the nbTypos (number of typos) in the result. If you are writing your UI, you can make changes to the output based on this value. I.e, only highlight if nbTypos is 0. However, this would be a customization you'd need to make.