[英]Aggregating Nested Fields in Kibana /Elastic Search
我在彈性緩存6中定義了一個索引
PUT my_index
{
"mappings": {
"_doc": {
"properties": {
"user": {
"type": "nested"
}
}
}
}
}
並加載了一些相同的數據,如下所示
PUT my_index/_doc/1
{
"group" : "coach",
"user" : [
{
"first" : "John",
"last" : "Frank"
},
{
"first" : "Hero",
"last" : "tim"
}
]
}
PUT my_index/_doc/2
{
"group" : "team",
"user" : [
{
"first" : "John",
"last" : "term"
},
{
"first" : "david",
"last" : "gayle"
}
]
}
現在,我嘗試在發現頁面或可視化頁面中進行搜索,但收到空白
經過一番嘗試和錯誤並四處搜尋后,我發現不支持嵌套類型的聚合和開箱即用的搜索。 為此,您必須安裝一個插件,下面列出了我發現的最好的插件。
https://ppadovani.github.io/knql_plugin/overview/
該插件提供了從發現選項卡到可視化選項卡的所有功能。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.