Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 826 Bytes

README.md

File metadata and controls

32 lines (22 loc) · 826 Bytes

facets-instantsearch demo

Demo of facets + facets-instantsearch.

Copy paste of instantsearch e-commerce example with slight changes.

Data copied from algolia/datasets

TODO

  • move index to worker?

Snippeting doesn't work

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"
    }
  }
}