mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-10 19:52:53 +00:00
committed by
Rainer Killinger
parent
6f7e23df20
commit
2f13010480
@@ -72,12 +72,12 @@ export function parseAggregations(
|
||||
|
||||
aggregationNames.forEach((aggregationName) => {
|
||||
const buckets = aggregations[aggregationName].buckets;
|
||||
|
||||
const facet: SCFacet = {
|
||||
buckets: buckets.map((bucket) => {
|
||||
const facetBucket: { [value: string]: number } = {};
|
||||
facetBucket[bucket.key] = bucket.doc_count;
|
||||
return facetBucket;
|
||||
return {
|
||||
count: bucket.doc_count,
|
||||
key: bucket.key,
|
||||
};
|
||||
}),
|
||||
field: aggregationSchema[aggregationName].terms.field + '.raw',
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user