[Cloud Posture] use index with keyword mapping (#130456)

This commit is contained in:
Or Ouziel 2022-04-18 19:30:16 +03:00 committed by GitHub
parent 7cf6bf648b
commit a14bcaa0e9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -78,6 +78,7 @@ export const getFindingsQuery = ({
from,
sort,
}: Omit<UseFindingsOptions, 'error'>) => ({
index,
query,
size,
from,

View file

@ -29,7 +29,7 @@ export const getFindingsCountAggQuery = ({ index, query }: Omit<FindingsBaseQuer
track_total_hits: true,
body: {
query,
aggs: { count: { terms: { field: 'result.evaluation' } } },
aggs: { count: { terms: { field: 'result.evaluation.keyword' } } },
},
});