Skip to content

Commit

Permalink
feat: re-order facets
Browse files Browse the repository at this point in the history
  • Loading branch information
joemcelroy committed Dec 20, 2020
1 parent 93bd74e commit 1f28f4c
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions examples/next/pages/api/graphql.js
Expand Up @@ -41,12 +41,6 @@ const searchkitConfig = {
}
}),

new RefinementSelectFacet({
field: 'rated',
identifier: 'rated',
label: 'Rated',
multipleSelect: true
}),

new DateRangeFacet({
field: 'released',
Expand All @@ -61,6 +55,18 @@ const searchkitConfig = {
multipleSelect: true
}),

new RefinementSelectFacet({
field: 'countries.keyword',
identifier: 'countries',
label: 'Countries',
display: 'ComboBoxFacet'
}),
new RefinementSelectFacet({
field: 'rated',
identifier: 'rated',
label: 'Rated',
multipleSelect: true
}),
new RefinementSelectFacet({
field: 'directors.keyword',
identifier: 'directors',
Expand All @@ -80,13 +86,6 @@ const searchkitConfig = {
multipleSelect: true
}),

new RefinementSelectFacet({
field: 'countries.keyword',
identifier: 'countries',
label: 'Countries',
display: 'ComboBoxFacet'
}),

new RangeFacet({
field: 'imdbrating',
identifier: 'imdbrating',
Expand All @@ -96,7 +95,9 @@ const searchkitConfig = {
max: 10,
min: 1
}
})
}),


]
}

Expand Down

0 comments on commit 1f28f4c

Please sign in to comment.