mute incorrect types in es-query (#108898)

* mute incorrect types in es-query

* fix another conflict
This commit is contained in:
Mikhail Shustov 2021-08-17 16:21:14 +03:00 committed by GitHub
parent 04a8a3c199
commit 609bd90785
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 1 deletions

View file

@ -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,

View file

@ -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,

View file

@ -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: {},
},