FacetValue

This is the model behind the facet value data for the searchpane widget. This search pane is typically used when integrating an external content source via a pluggable toolbar plugin. This external source can define facets with facet values, for example: the facet "brand" and facet value: "apple", "samsung" with the corresponding counts.

Example
define([
  "blueconic/api/data/domain/FacetValue"
], function(FacetValue) {
  var facetValue = new FacetValue();
  // ...
});

Properties

count Integer

The number of documents found which have this value.

id String

Unique id of the facet value.

name String

The readable name of the facet value.

selected Boolean

Indicates if this FacetValue is selected by the user.