Skip to content

Commit 0b75fdf

Browse files
committed
feat: use raw facet fields to normalize casing on filter checkboxes
1 parent 0e776af commit 0b75fdf

File tree

1 file changed

+12
-12
lines changed
  • src/views/search-results-page/components/filters

1 file changed

+12
-12
lines changed

src/views/search-results-page/components/filters/config.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -142,30 +142,30 @@ export const FILTER_CONFIGS: FilterConfig[] = [
142142
// },
143143
},
144144
{
145-
_id: 'healthCondition.name',
145+
_id: 'healthCondition.name.raw',
146146
name: 'Health Condition',
147-
property: 'healthCondition.name',
147+
property: 'healthCondition.name.raw',
148148
description: getSchemaDescription('healthCondition'),
149149
createQueries: buildQueries(),
150150
},
151151
{
152-
_id: 'infectiousAgent.displayName',
152+
_id: 'infectiousAgent.displayName.raw',
153153
name: 'Pathogen Species',
154-
property: 'infectiousAgent.displayName',
154+
property: 'infectiousAgent.displayName.raw',
155155
description: getSchemaDescription('infectiousAgent'),
156156
createQueries: buildQueries(),
157157
},
158158
{
159-
_id: 'species.displayName',
159+
_id: 'species.displayName.raw',
160160
name: 'Host Species',
161-
property: 'species.displayName',
161+
property: 'species.displayName.raw',
162162
description: getSchemaDescription('species'),
163163
createQueries: buildQueries(),
164164
},
165165
{
166-
_id: 'funding.funder.name',
166+
_id: 'funding.funder.name.raw',
167167
name: 'Funding',
168-
property: 'funding.funder.name',
168+
property: 'funding.funder.name.raw',
169169
description: getSchemaDescription('funding'),
170170
createQueries: buildQueries(),
171171
},
@@ -177,16 +177,16 @@ export const FILTER_CONFIGS: FilterConfig[] = [
177177
createQueries: buildQueries(),
178178
},
179179
{
180-
_id: 'variableMeasured.name',
180+
_id: 'variableMeasured.name.raw',
181181
name: 'Variable Measured',
182-
property: 'variableMeasured.name',
182+
property: 'variableMeasured.name.raw',
183183
description: getSchemaDescription('variableMeasured.name'),
184184
createQueries: buildQueries(),
185185
},
186186
{
187-
_id: 'measurementTechnique.name',
187+
_id: 'measurementTechnique.name.raw',
188188
name: 'Measurement Technique',
189-
property: 'measurementTechnique.name',
189+
property: 'measurementTechnique.name.raw',
190190
description: getSchemaDescription('measurementTechnique'),
191191
createQueries: buildQueries(),
192192
},

0 commit comments

Comments
 (0)