1、用逗号将索引隔开,如:
$ curl -XPOST http://localhost:9200/aaa,website/_search/

{

  • "took": 1,
  • "timed_out": false,
  • "_shards": {
    • "total": 10,
    • "successful": 10,
    • "failed": 0

    },

  • "hits": {
    • "total": 5,
    • "max_score": 1,
    • "hits": [
      • {

        • "_index": "website",
        • "_type": "blog",
        • "_id": "123",
        • "_score": 1,
        • "_source": {
          • "title": "My first blog entry",
          • "text": "Just trying this out...",
          • "date": "2014/01/01"

          }

        },

      • {
        • "_index": "website",
        • "_type": "blog",
        • "_id": "AVbkih8AltSLRRB7XAun",
        • "_score": 1,
        • "_source": {
          • "title": "TestTitle",
          • "text": "text",
          • "date": "2016/09/01"

          }

        },

      • {
        • "_index": "website",
        • "_type": "blog",
        • "_id": "AVbf1AtSyvALLDk8cjpY",
        • "_score": 1,
        • "_source": {
          • "title": "My 3 blog entry",
          • "text": "Still trying this out...",
          • "date": "2014/01/01"

          }

        },

      • {
        • "_index": "aaa",
        • "_type": "aaa",
        • "_id": "AVcCopjQzgrwoUDkEMu3",
        • "_score": 1,
        • "_source": {
          • "str1": "hello",
          • "str2": "world"

          }

        },

      • {
        • "_index": "aaa",
        • "_type": "aaa",
        • "_id": "AVcCogrMzgrwoUDkEMu2",
        • "_score": 1,
        • "_source": {
          • "str1": "hello, world!",
          • "str2": "goodbye! world"

          }

        }

      ]

    }

}

2、通配符

elasticsearch还支持使用统配的风格,如使用*匹配任意字符。

3、数学表达式风格

最后可以通过add(+)添加一个索引,使用remove(-)去掉一个索引

ElasticSearch 多索引的更多相关文章

  1. ElasticSearch+Kibana 索引操作

    ElasticSearch+Kibana 索引操作 一 前言 ElasticiSearch 简介 ElasticSearch是一个基于Lucene的搜索服务器.它提供了一个分布式多用户能力的全文搜索引 ...

  2. ES 10 - Elasticsearch的索引别名和索引模板

    目录 1 索引模板概述 1.1 什么是索引模板 1.2 索引模板中的内容 1.3 索引模板的用途 2 创建索引模板 3 查看索引模板 4 删除索引模板 5 模板的使用建议 5.1 一个index中不能 ...

  3. elasticsearch的索引操作和文档操作总结

    参考文档:https://es.xiaoleilu.com/010_Intro/00_README.html 一.索引操作 1.查看当前节点的所有的index 查看当前节点的所有的index [roo ...

  4. elasticsearch的索引自动清理及自定义清理

    近发现elasticsearch近期索引文件大的吓人,清理了下之前的索引文件,发现服务器性能大大的减轻了一半,想一直保留近一个月的索引文件,但是又不想每个月手动清楚,在此写了一个小脚本 查询索引: c ...

  5. ELK学习笔记之ElasticSearch的索引详解

    0x00 ElasticSearch的索引和MySQL的索引方式对比 Elasticsearch是通过Lucene的倒排索引技术实现比关系型数据库更快的过滤.特别是它对多条件的过滤支持非常好,比如年龄 ...

  6. elasticsearch删除索引报错【原】

    如果elasticsearch删除索引报错 curl -X DELETE 'http://10.73.26.66:9200/httpd-34-2017.08.15' {"error" ...

  7. Spring Boot + Elasticsearch 实现索引的日常维护

    全文检索的应用越来越广泛,几乎成了互联网应用的标配,商品搜索.日志分析.历史数据归档等等,各种场景都会涉及到大批量的数据,在全文检索方面,方案无外乎Lucene.Solr.Elasticsearch三 ...

  8. Spring Boot + Elasticsearch 实现索引批量写入

    在使用Eleasticsearch进行索引维护的过程中,如果你的应用场景需要频繁的大批量的索引写入,再使用上篇中提到的维护方法的话显然效率是低下的,此时推荐使用bulkIndex来提升效率.批写入数据 ...

  9. 数组如何在ElasticSearch中索引

    一.简介 在ElasticSearch里没有专门的数组类型,任何一个字段都可以有零个和多个值.当字段值的个数大于1时,字段类型就变成了数组. 下面以视频数据为例,介绍ElasticSearch如何索引 ...

  10. 【ElasticSearch】索引重建

    ElasticSearch索引重建 ElasticSearch索引一旦建立,便不可修改索引字段类型(允许增加或者删除该字段) 例如从Integer类型修改为long类型,这是不被允许的,错误信息如下: ...

随机推荐

  1. Could not load OpenSSL解决

    问题 Could not load OpenSSL. You must recompile Ruby with OpenSSL support or change the sources in you ...

  2. python 基础网络编程2

    python 基础网络编程2 前一篇讲了socketserver.py中BaseServer类, 下面介绍下TCPServer和UDPServer class TCPServer(BaseServer ...

  3. k8s学习目录

    目录 K8S基础部分 基础部分 5 秒创建 k8s 集群[转] k8s 核心功能[转] k8s 重要概念[转] 部署 k8s Cluster(上)[转] 部署 k8s Cluster(下)[转] Ku ...

  4. Qtopia移植

    Qtopia 是Trolltech 公司为采用嵌入式Linux操作系统的消费电子设备而开发的综合应用平台, Qtopia包含完整的应用层.灵活的用户界面.窗口操作系统.应用程序启动程序以及开发框架.下 ...

  5. 编写testplan

    编写验证计划是验证工作核心技能.衡量标准是完备性.可是写一个完备的验证计划,才开始不是一件容易的事情,需要不断的练习实践. 1.验证计划主要从设计的futurelist中提取.     复杂的futu ...

  6. 【ios】IOS返回3824错误

    后台接口数据返回有NULL格式的数据

  7. 【php】关于尾部去除和分号问题

    One thing to remember is, if you decide to omit the closing PHP tag, then the last line of the file ...

  8. 模块导入及使用,关键字,模块搜索路径,python文件的两种用途

    06.05自我总结 一.模块导入及使用 1.模块导入的两种方式 我们拿time模块并使用其中的time功能进行举例 a)第一种 import time print(time.time) import首 ...

  9. vfs_caches_init函数解析

    vfs_caches_init函数初始化VFS,下面梳理函数调用流程 start_kernel() -->vfs_caches_init_early(); -->dcache_init_e ...

  10. LeetCode(1)Two Sum

    题目: Given an array of integers, find two numbers such that they add up to a specific target number. ...