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
|
@ -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…
Reference in a new issue