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/parseAlgoliaHitReverseHighlight.md
+47-15Lines changed: 47 additions & 15 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: parseAlgoliaHitReverseHighlight
3
3
---
4
4
5
-
Returns the highlighted parts of an Algolia hit.
5
+
import PresetAlgoliaNote from './partials/preset-algolia/note.md'
6
6
7
-
This is a common pattern for Query Suggestions.
7
+
Returns the highlighted non-matching parts of an Algolia hit.
8
8
9
-
## Example with a single string
9
+
The `parseAlgoliaHitReverseHighlight` function lets you parse the non-highlighted parts of an Algolia hit. 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