NIUCLOUD是一款SaaS管理后台框架多应用插件+云编译。上千名开发者、服务商正在积极拥抱开发者生态。欢迎开发者们免费入驻。一起助力发展! 广告
# _field_names field 该** _field_names **字段索引包含除 **null **之外的任何值的文档中每个字段的名称。 该字段通过 **[exists](https://www.elastic.co/guide/en/elasticsearch/reference/5.3/query-dsl-exists-query.html) **查询以查找特定字段具有或不具有任何非空值的文档。 该** _field_names **字段的值可以在查询中被访问: # Example documents PUT my_index/my_type/1 { "title": "This is a document" } PUT my_index/my_type/2?refresh=true { "title": "This is another document", "body": "This document has a body" } GET my_index/_search { "query": { "terms": { "_field_names": [ "title" ] # 1 } } } | 1 | 在 **_field_names **字段上查询(参考 **[exists](https://www.elastic.co/guide/en/elasticsearch/reference/5.3/query-dsl-exists-query.html) **查询) |