Skip to content

Commit

Permalink
feat(deprecated): add the attribute for faceting (#160)
Browse files Browse the repository at this point in the history
* feat(deprecated): add the attribute for faceting

This allows it to be filtered on!

fixes #159

* chore: update snapshots
  • Loading branch information
Haroenv committed Mar 14, 2018
1 parent 8b20a77 commit afe02c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/__tests__/__snapshots__/config.test.js.snap
Expand Up @@ -29,6 +29,7 @@ Object {
"filterOnly(concatenatedName)",
"searchable(keywords)",
"searchable(owner.name)",
"deprecated",
],
"customRanking": Array [
"desc(downloadsLast30Days)",
Expand Down
1 change: 1 addition & 0 deletions src/config.js
Expand Up @@ -28,6 +28,7 @@ const defaultConfig = {
'filterOnly(concatenatedName)' /* optionalFacetFilters to boost the name */,
'searchable(keywords)',
'searchable(owner.name)',
'deprecated',
],
customRanking: ['desc(downloadsLast30Days)'],
disablePrefixOnAttributes: ['keywords', 'owner.name', 'owners.name'],
Expand Down

0 comments on commit afe02c8

Please sign in to comment.