v0.1.14
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
    },
    ...