我有一些索引,它们对应的模板的一部分是这样的:
当我在开发工具中查询索引时,我能够检索所需的数据并看到上面的字段。
您可以清楚地看到labels.state
和labels.pipeline_version
可用于此特定文档。
但我看不到Discover部分中的所有字段(例如labels.state
)!
x1c4d 1x指令集
知道吗?谢谢!
这是_mapping
API的输出
{
"debug-2022.07.15": {
"mappings": {
"dynamic": "true",
"dynamic_date_formats": [
"strict_date_optional_time",
"yyyy/MM/dd HH:mm:ss Z||yyyy/MM/dd Z"
],
"dynamic_templates": [],
"date_detection": true,
"numeric_detection": false,
"properties": {
"@timestamp": {
"type": "date",
"format": "strict_date_optional_time"
},
"@version": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"event": {
"properties": {
"original": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
}
}
},
"host": {
"properties": {
"name": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
}
}
},
"labels": {
"properties": {
"params": {
"type": "keyword"
},
"parentId": {
"type": "keyword"
},
"pipeline_version": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"run_number": {
"type": "keyword"
},
"scenario": {
"type": "keyword"
},
"scenario_description": {
"type": "keyword"
},
"scenario_detail_params": {
"type": "keyword"
},
"scenario_name": {
"type": "keyword"
},
"state": {
"type": "keyword"
},
"suite_name": {
"type": "keyword"
},
"test_id": {
"type": "keyword"
},
"test_info": {
"type": "keyword"
},
"test_no": {
"type": "keyword"
},
"test_object": {
"type": "keyword"
},
"type": {
"properties": {
"keyword": {
"type": "keyword"
}
}
},
"xray_test_description": {
"type": "keyword"
},
"xray_test_execution": {
"type": "keyword"
},
"xray_test_id": {
"type": "keyword"
},
"xray_test_id_summery": {
"type": "keyword"
},
"xray_test_plan_key": {
"type": "keyword"
},
"xray_test_plan_key_summery": {
"type": "keyword"
},
"xray_test_plan_summery": {
"type": "keyword"
},
"xray_test_step_info": {
"type": "keyword"
},
"xray_test_summery": {
"type": "keyword"
}
}
},
"log": {
"properties": {
"file": {
"properties": {
"path": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
}
}
}
}
},
"message": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"tags": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
}
}
}
},
"debug-2022.07.13": {
"mappings": {
"dynamic": "true",
"dynamic_date_formats": [
"strict_date_optional_time",
"yyyy/MM/dd HH:mm:ss Z||yyyy/MM/dd Z"
],
"dynamic_templates": [],
"date_detection": true,
"numeric_detection": false,
"properties": {
"@timestamp": {
"type": "date",
"format": "strict_date_optional_time"
},
"@version": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"error": {
"properties": {
"stack_trace": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"type": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
}
}
},
"event": {
"properties": {
"original": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
}
}
},
"host": {
"properties": {
"name": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
}
}
},
"labels": {
"properties": {
"error_level": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"jira_project_key": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"params": {
"type": "keyword"
},
"parentId": {
"type": "keyword"
},
"pipeline_version": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"run_number": {
"type": "keyword"
},
"scenario": {
"type": "keyword"
},
"scenario_description": {
"type": "keyword"
},
"scenario_detail_params": {
"type": "keyword"
},
"scenario_name": {
"type": "keyword"
},
"state": {
"type": "keyword"
},
"suite_name": {
"type": "keyword"
},
"test_id": {
"type": "keyword"
},
"test_info": {
"type": "keyword"
},
"test_no": {
"type": "keyword"
},
"test_object": {
"type": "keyword"
},
"type": {
"properties": {
"keyword": {
"type": "keyword"
}
}
},
"xray_test_description": {
"type": "keyword"
},
"xray_test_execution": {
"type": "keyword"
},
"xray_test_id": {
"type": "keyword"
},
"xray_test_id_summery": {
"type": "keyword"
},
"xray_test_plan_key": {
"type": "keyword"
},
"xray_test_plan_key_summery": {
"type": "keyword"
},
"xray_test_plan_summery": {
"type": "keyword"
},
"xray_test_step_info": {
"type": "keyword"
},
"xray_test_summery": {
"type": "keyword"
}
}
},
"log": {
"properties": {
"file": {
"properties": {
"path": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
}
}
}
}
},
"message": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"tags": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
}
}
}
}
}
和我的索引
1条答案
按热度按时间pengsaosao1#
正如这里所指出的https://github.com/elastic/kibana/issues/136515
目前,在Discover页面上,我们只呈现前500个文档(根据discover:sampleSize设置),字段列表基于第一批文档构建。如果字段在前500个文档中有空值,则默认情况下,除非用户关闭“隐藏空字段”切换,否则它们不会在侧栏中列出,如下所示: