mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
mute incorrect types in es-query (#108898)
* mute incorrect types in es-query * fix another conflict
This commit is contained in:
parent
04a8a3c199
commit
609bd90785
3 changed files with 4 additions and 1 deletions
|
@ -53,6 +53,7 @@ export function toElasticsearchQuery(
|
|||
}
|
||||
|
||||
return {
|
||||
// @ts-expect-error @elastic/elasticsearch doesn't support ignore_unmapped in QueryDslGeoBoundingBoxQuery
|
||||
geo_bounding_box: {
|
||||
[fieldName]: queryParams,
|
||||
ignore_unmapped: true,
|
||||
|
|
|
@ -49,6 +49,7 @@ export function toElasticsearchQuery(
|
|||
}
|
||||
|
||||
return {
|
||||
// @ts-expect-error @elastic/elasticsearch doesn't support ignore_unmapped in QueryDslGeoPolygonQuery
|
||||
geo_polygon: {
|
||||
[fieldName]: queryParams,
|
||||
ignore_unmapped: true,
|
||||
|
|
|
@ -83,7 +83,7 @@ export function createOpenInExplorerAction(getStartServices: MlCoreSetup['getSta
|
|||
should: [
|
||||
{
|
||||
match_phrase: {
|
||||
[fieldName]: fieldValue,
|
||||
[fieldName]: String(fieldValue),
|
||||
},
|
||||
},
|
||||
],
|
||||
|
@ -104,6 +104,7 @@ export function createOpenInExplorerAction(getStartServices: MlCoreSetup['getSta
|
|||
pageState: {
|
||||
jobIds,
|
||||
timeRange,
|
||||
// @ts-ignore QueryDslQueryContainer is not compatible with SerializableRecord
|
||||
...(mlExplorerFilter ? ({ mlExplorerFilter } as SerializableRecord) : {}),
|
||||
query: {},
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue