Skip to content

Commit 9bf728c

Browse files
committed
fix: clean unused facet
1 parent 0a0530f commit 9bf728c

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

src/search-manager/data/__mocks__/block-types.json

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,6 @@
1717
"vertical": 2,
1818
"video": 1
1919
},
20-
"content.problem_types": {
21-
"choiceresponse": 2,
22-
"multiplechoiceresponse": 6,
23-
"numericalresponse": 3,
24-
"optionresponse": 4,
25-
"stringresponse": 1
26-
}
2720
},
2821
"facetStats": {}
2922
}

src/search-manager/data/api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ export const fetchBlockTypes = async (
317317
const { results } = await client.multiSearch({
318318
queries: [{
319319
indexUid: indexName,
320-
facets: ['block_type', 'content.problem_types'],
320+
facets: ['block_type'],
321321
filter: extraFilterFormatted,
322322
limit: 0, // We don't need any "hits" for this - just the facetDistribution
323323
}],

0 commit comments

Comments
 (0)