-
搜索所有index(慎用):
GET /_search
-
搜一个索引下,所有type,(不指定type即可)
GET /beauties/_search
-
搜多个索引,则多个索引间,用逗号(,)分隔开
GET /beauties,test_index/_search
-
使用通配符,搜索所有匹配的index内容
GET /*e*,b*/_search
-
搜索一个index下,多个type
GET /beauties/my,cn/_search
-
搜索所有index下,指定type,(用 _all 代指所有index)
GET /_all/my,cn/_search
9 同时搜索多个index,或多个type
原文:https://www.cnblogs.com/cc299/p/11032819.html