使用 shuf 来打乱一个文件中的行或是选择文件中一个随机的行。

must / must_not 条件筛选问题

Elasticsearch | 作者 TinaZhou | 发布于2019年11月06日 | 阅读数:1819

存在city字段的数据中筛选出不存在city字段的数据
已邀请:

MihaiWong -

赞同来自:

{ "query": { "bool": { "must_not": { "exists": { "field": "city" } } } } }

 

要回复问题请先登录注册