parseAlgoliaHitReverseSnippet
Returns the non-matching parts of an Algolia hit snippet.
This is a common pattern for Query Suggestions.
#
Example with a single string#
Example with nested attributes#
Paramshit
#
AlgoliaHit
| required
The Algolia hit to retrieve the attribute value from.
attribute
#
string | string[]
| required
The attribute to retrieve the reverse snippet value from. You can use the array syntax to reference the nested attributes.