Elasticsearch搜索自动剔除数据为空的字段,语句怎么写呢,就比如term : " "的时候自动换成下一个有内容的
可以统一指定你需要返回的字段
{ "query": {}, "_source": [ "field-1", "field-2" ] }