diff --git a/src/endpoints/statistics/index.ts b/src/endpoints/statistics/index.ts index f171d9e..9160874 100644 --- a/src/endpoints/statistics/index.ts +++ b/src/endpoints/statistics/index.ts @@ -76,7 +76,7 @@ const fetchFamilyStats = async (client: Client): Promise => { const { body } = await client.search({ index: esStudyIndex, body: { - aggs: { types_count: { value_count: { field: familyCountKey } } }, + aggs: { types_count: { sum: { field: familyCountKey } } }, }, size: 0, });