You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/website/docs/parseAlgoliaHitReverseSnippet.md
+45-11Lines changed: 45 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,16 +2,44 @@
2
2
id: parseAlgoliaHitReverseSnippet
3
3
---
4
4
5
+
import PresetAlgoliaNote from './partials/preset-algolia/note.md'
6
+
5
7
Returns the non-matching parts of an Algolia hit snippet.
6
8
7
-
This is a common pattern for Query Suggestions.
9
+
The `parseAlgoliaHitReverseSnippet` function lets you parse the non-highlighted parts of an Algolia hit's snippet. This is a common pattern for [Query Suggestions](https://www.algolia.com/doc/guides/building-search-ui/ui-and-ux-patterns/query-suggestions/js/), where you want to highlight the differences between each suggestion.
0 commit comments