标签: elasticsearch elasticsearch-plugin
如何从Elasticsearch的响应中提取少量字段。我尝试了以下方法:
1)"_source": ["f1", "f2"] 2)"fields" : ["f1", "f2"] 3)"_source": { "include" : ["f1", "f2"] }
"_source": ["f1", "f2"]
"fields" : ["f1", "f2"]
"_source": { "include" : ["f1", "f2"] }
以上所有查询都回复了所有字段(40)。请帮助。 在此先感谢!!!