Skip to content

v0.1.14

Compare
Choose a tag to compare
@anttiai anttiai released this 29 Aug 09:34
· 293 commits to master since this release

Added support for facets. New function:

  • addFacetField

For example, faceting against genre:

client.addFacetField('custom_fields.genre')

could return

hits: [ ... ]
facets: {
  custom_fields.genre: [
    {
      value: "rock",
      count: 932
    },
    {
      value: "pop",
      count: 823
    },
    ...