【发布时间】:2020-11-15 17:43:40
【问题描述】:
我正在尝试解决我的搜索查询的解析异常。 我想在那里得到一些帮助:)
异常原因: '[1:65] [bool] 无法解析字段 [filter]' 消息:'x_content_parse_exception'
我的搜索:
data = (await this.elasticClient.search({
index: Indexes.Measurements,
size: 10000,
body: {
query: {
bool: {
filter: {
terms: {
"MachineId": ["mo3", "mo2"]
},
range: {
'@timestamp': {
gte: `now-${lastMinutes}m`,
lte: 'now'
}
}
}
},
},
sort : [{ "@timestamp" : "desc" }]
}})).body.hits.hits.map(data => data._source);
【问题讨论】:
标签: elasticsearch elasticsearch-dsl