首页  

elasticsearch5.0批量读取API     所属分类 elasticsearch 浏览量 1386
根据原文翻译整理
https://www.elastic.co/guide/en/elasticsearch/reference/5.0/docs-multi-get.html


http://127.0.0.1:9200/twitter/tweet/_search


http://127.0.0.1:9200/twitter/tweet/_mget
{"ids" : ["1", "2"]}
post

{"ids" : ["1", "2","1"]}
ID为1的文档会被返回2次

Source filtering

_source
_source_include   _source_exclude
 
 
"_source" : false
"_source" : ["field1", "field2"]

"_source" : {
                "include": ["user"],
                "exclude": ["user.location"]
            }
            
stored_fields


routing=key1

上一篇     下一篇
elasticsearch5.0文档查询删除API

elasticsearch5.0文档更新API

elasticsearch5.0文档查询更新API

elasticsearch5.0批量更新API

elasticsearch5.0重建索引API

elasticsearch5.0词向量信息查询接口