【发布时间】:2021-02-24 19:53:09
【问题描述】:
我知道如何用非空字段确定Elasticsearch6.8中的文档,例如:
GET grch38_test__wes__grch38__variants__20210222/_search
{
"query": {
"bool": {
"must": [{
"exists": {
"field": "hgmd_accession"
}
}]
}
}
}
但是如何在一个查询中返回现有(非 null)和空值?我需要找到值确实存在的文档:空或设置为 null。我的索引中可能有一些文档根本不存在该字段,我需要 _reindex 那些只是以任何形式存在该字段的文档。
【问题讨论】:
标签: elasticsearch exists