mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[Cloud Posture] use index with keyword mapping (#130456)
This commit is contained in:
parent
7cf6bf648b
commit
a14bcaa0e9
2 changed files with 2 additions and 1 deletions
|
@ -78,6 +78,7 @@ export const getFindingsQuery = ({
|
|||
from,
|
||||
sort,
|
||||
}: Omit<UseFindingsOptions, 'error'>) => ({
|
||||
index,
|
||||
query,
|
||||
size,
|
||||
from,
|
||||
|
|
|
@ -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' } } },
|
||||
},
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue