File tree 1 file changed +4
-7
lines changed
1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -63,13 +63,7 @@ export class FairDOConfigBuilder {
63
63
index_names . push ( index . name )
64
64
65
65
allSearchFields = ( index . searchFields || [ ] ) . reduce ( ( acc , n ) => {
66
- if ( n === "locationPreview/Sample" ) {
67
- acc [ n ] = {
68
- weight : 10
69
- }
70
- } else {
71
- acc [ n ] = { }
72
- }
66
+ acc [ n ] = { }
73
67
74
68
return acc
75
69
} , allSearchFields )
@@ -113,18 +107,21 @@ export class FairDOConfigBuilder {
113
107
if ( "type" in n && n . type === "numeric" ) {
114
108
const facetRanges = this . buildNumericRangeFacet ( n )
115
109
acc [ n . key ] = {
110
+ ...n ,
116
111
type : "range" ,
117
112
ranges : facetRanges
118
113
}
119
114
} else if ( "type" in n && n . type ?. startsWith ( "date_" ) ) {
120
115
const facetRanges = this . buildDateRangeFacet ( n )
121
116
acc [ n . key ] = {
117
+ ...n ,
122
118
type : "range" ,
123
119
ranges : facetRanges
124
120
}
125
121
} else {
126
122
// no specific range facet, use default arguments
127
123
acc [ n . key ] = {
124
+ ...n ,
128
125
type : "value" ,
129
126
size : 100
130
127
}
You can’t perform that action at this time.
0 commit comments