Skip to content

Commit

Permalink
fix: clean unused facet
Browse files Browse the repository at this point in the history
  • Loading branch information
rpenido committed Sep 26, 2024
1 parent 0a0530f commit 9bf728c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
7 changes: 0 additions & 7 deletions src/search-manager/data/__mocks__/block-types.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,6 @@
"vertical": 2,
"video": 1
},
"content.problem_types": {
"choiceresponse": 2,
"multiplechoiceresponse": 6,
"numericalresponse": 3,
"optionresponse": 4,
"stringresponse": 1
}
},
"facetStats": {}
}
Expand Down
2 changes: 1 addition & 1 deletion src/search-manager/data/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ export const fetchBlockTypes = async (
const { results } = await client.multiSearch({
queries: [{
indexUid: indexName,
facets: ['block_type', 'content.problem_types'],
facets: ['block_type'],
filter: extraFilterFormatted,
limit: 0, // We don't need any "hits" for this - just the facetDistribution
}],
Expand Down

0 comments on commit 9bf728c

Please sign in to comment.