unique
parameter in JSON facets. You can use JSON facets by creating Query Params in a Create a Query Profile or with the Additional Query Parameters Stage in a Query Pipeline.
Create a Query Profile
dsl
(Domain Specific Language) uses expressive search queries and responses via a structured, modern JSON format.
legacy
primarily uses Solr parameters. See the Solr Query Language cheat sheet.
all
uses both DSL and legacy search modes. This is the default value.
The default value of all
works well for most use cases.
select
works well for most use cases.
count
for those facets reflects matching product counts, not SKU counts.SKU | Product | Color |
---|---|---|
Sku11 | Prod1 | Red |
Sku12 | Prod1 | Blue |
Sku13 | Prod1 | Blue |
Sku14 | Prod1 | Blue |
Sku21 | Prod2 | Red |
Sku22 | Prod2 | Blue |
Sku23 | Prod2 | Green |
Sku24 | Prod2 | Green |
mean
price of a product or determine how many documents are missing a particular field.
count
ordering is by documents per term, descending, and index
ordering is sorted on term values themselves.
enum
. Small number of distinct categories.fc
(“field cache”). Many different values in the field, each document has low number of values, multi-valued field.fcs
(“single value string fields”). Good for rapidly changing indexes.