我目前正在使用按索引查询术语过滤查询:
{
"query": {
"bool": {
"must": [
{
"terms": {
"test.type.name": {
"index": "test-type-index",
"id": "unit-test",
"path": "type.name"
}
}
},
{
"term": {
"test.env": {
"value": "dev"
}
}
}
]
}
}
}test-type-index实例
{
"_index": "test-type-index",
"_id": "unit-test",
"_score": 1.0,
"_source": {
"type": [
{
"name": "test1",
},
{
"name": "test2",
}
]
}
}
}我正在尝试基于这个查询创建一个仪表板。我如何创建这些可视化?
发布于 2022-09-06 12:34:55
现在还不可能基于terms查找查询创建仪表板控件,但是这上面有正在进行的工作,将来可能会添加该控件。
现在,您可以将该查询直接添加到新的自定义筛选器的DSL选项卡中,但差不多就是这样。
https://stackoverflow.com/questions/73622008
复制相似问题