9 同时搜索多个index,或多个type

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