Demo of facets
+ facets-instantsearch
.
Copy paste of instantsearch e-commerce example with slight changes.
Data copied from algolia/datasets
- move index to worker?
See: helpers.snippet
in Products.ts
.
It should cut first N words. It requires primitive tokenizer, plus it should try to show text with matched parts.
request.params.attributesToSnippet = ["description:10"];
{
"_snippetResult": {
"description": {
"value": "Enjoy smart access to videos, games and apps with this …",
"matchLevel": "none"
}
}
}