@@ -18,12 +18,13 @@ const defaultConfig = {
18
18
indexSettings : {
19
19
searchableAttributes : [
20
20
'unordered(_searchInternal.popularName)' ,
21
- 'name, _searchInternal.concatenatedName, description, keywords' ,
21
+ 'name, description, keywords' ,
22
+ '_searchInternal.alternativeNames' ,
22
23
'owner.name' ,
23
24
'owners.name' ,
24
25
] ,
25
26
attributesForFaceting : [
26
- 'filterOnly(_searchInternal.concatenatedName )' /* optionalFacetFilters to boost the name */ ,
27
+ 'filterOnly(_searchInternal.alternativeNames )' /* optionalFacetFilters to boost the name */ ,
27
28
'searchable(keywords)' ,
28
29
'searchable(computedKeywords)' ,
29
30
'searchable(owner.name)' ,
@@ -62,33 +63,18 @@ const defaultConfig = {
62
63
] ,
63
64
indexRules : [
64
65
{
65
- objectID : 'promote-exact-old ' ,
66
- description : 'promote exact matches (old, delete me in a next PR) ' ,
66
+ objectID : 'promote-exact' ,
67
+ description : 'promote exact matches' ,
67
68
condition : {
68
- pattern : '{facet:_searchInternal.concatenatedName }' ,
69
+ pattern : '{facet:_searchInternal.alternativeNames }' ,
69
70
anchoring : 'is' ,
70
71
} ,
71
72
consequence : {
72
73
params : {
73
- automaticOptionalFacetFilters : [ '_searchInternal.concatenatedName ' ] ,
74
+ automaticOptionalFacetFilters : [ '_searchInternal.alternativeNames ' ] ,
74
75
} ,
75
76
} ,
76
77
} ,
77
- // not yet enabled, but to be done in a replica after this is merged and
78
- // in production
79
- // {
80
- // objectID: 'promote-exact',
81
- // description: 'promote exact matches',
82
- // condition: {
83
- // pattern: '{facet:_searchInternal.alternativeNames}',
84
- // anchoring: 'is',
85
- // },
86
- // consequence: {
87
- // params: {
88
- // automaticOptionalFacetFilters: ['_searchInternal.alternativeNames'],
89
- // },
90
- // },
91
- // },
92
78
] ,
93
79
} ;
94
80
0 commit comments