ElasticSearch查询之exists使用

exists允许你过滤文档,只查找那些在特定字段有值的文档,无论其值是多少。demo如下: 1、索引中的数据如下: 2、查询语句如下 GET account/account/_search {   "query": {     "bool": {       "must": [         {           "exists": {             "field": "sex"  
相关文章
相关标签/搜索