Elasticsearch api查询
来源:互联网 发布:在linux中配置grub 编辑:程序博客网 时间:2024/06/05 08:28
- http://localhost:9200/channel/details/_search > 查询所有的数据,相当于不带条件查询
channel:索引details:类型
{ "took": 4, "timed_out": false, "_shards": { "total": 5, "successful": 5, "failed": 0 }, "hits": { "total": 796, "max_score": 1, "hits": [ { "_index": "channel", "_type": "details", "_id": "AV02WSEi_aivDXwC7DCj", "_score": 1, "_source": {//ES将原始数据保存到_source字段中 "id": 654, "api_id": "us-t", "type": 1, "type_id": "26" } }, { "_index": "channel", "_type": "details", "_id": "AV02WSEi_aivDXwC7DCk", "_score": 1, "_source": { "id": 655, "api_id": "us-e", "type": 1, "type_id": "26" } }, { "_index": "channel", "_type": "details", "_id": "AV02WSEi_aivDXwC7DCq", "_score": 1, "_source": { "id": 661, "api_id": "tw-t", "type": 1, "type_id": "26" } }, { "_index": "channel", "_type": "details", "_id": "AV02WSEi_aivDXwC7DCy", "_score": 1, "_source": { "id": 669, "api_id": "in-t", "type": 1, "type_id": "26" } }, { "_index": "channel", "_type": "details", "_id": "AV02WSEi_aivDXwC7DC1", "_score": 1, "_source": { "id": 672, "api_id": "in-snc", "type": 1, "type_id": "26" } }, { "_index": "channel", "_type": "details", "_id": "AV02WSEi_aivDXwC7DC3", "_score": 1, "_source": { "id": 674, "api_id": "in-y", "type": 1, "type_id": "26" } }, { "_index": "channel", "_type": "details", "_id": "AV02WSEi_aivDXwC7DDH", "_score": 1, "_source": { "id": 690, "api_id": "ru-n", "type": 1, "type_id": "26" } }, { "_index": "channel", "_type": "details", "_id": "AV02WSEi_aivDXwC7DDI", "_score": 1, "_source": { "id": 691, "api_id": "ru-b", "type": 1, "type_id": "26" } }, { "_index": "channel", "_type": "details", "_id": "AV02WSEi_aivDXwC7DDR", "_score": 1, "_source": { "id": 700, "api_id": "ru-snc", "type": 1, "type_id": "26" } }, { "_index": "channel", "_type": "details", "_id": "AV02WSEi_aivDXwC7DDS", "_score": 1, "_source": { "id": 701, "api_id": "ru-economy", "type": 1, "type_id": "26" } } ] }}
你会发现无论数据量有多大,每次最多只能查到10条数据。这是因为ES服务端默认对查询结果做了分页处理,每页默认的大小为10
阅读全文
0 0
- 3-Elasticsearch查询API
- Elasticsearch api查询
- ElasticSearch java API - 聚合查询
- Elasticsearch API聚合查询-笔记
- [ElasticStack系列]elasticsearch查询api
- Elasticsearch java API (20)查询 DSL
- ElasticSearch查询 第一篇:搜索API
- Elasticsearch的Java API/查询/分页等
- elasticsearch 常规java api string查询
- Elasticsearch java API (21)查询 DSL 项级别查询
- Elasticsearch java API (21)查询 DSL 复合查询
- Elasticsearch java API (22)查询 DSL Joining查询
- Elasticsearch java API (23)查询 DSL Geo查询
- Elasticsearch java API (24)查询 DSL Specialized(专业)查询
- Elasticsearch java API (25)查询 DSL Span(跨度)查询
- [ElasticSearch]Java API 之 词条查询(Term Level Query)
- Elasticsearch——(API//索引//查询//聚合)简介
- Elasticsearch的安装/术语/索引/查询API/DSL
- Retrofit2.0 简单实现的网络请求
- WPF MVVM 绑定ComboBox数据
- Linux下安装SVN
- java学习(3) API文档下载
- SQL数据复制表、数据、结构方法
- Elasticsearch api查询
- ActivityLifecycleCallbacks——追踪Activity生命周期
- chrome插件推荐
- 探讨Android6.0及以上系统APP常驻内存(保活)实现-争宠篇
- Mysql 使用全文索引
- JavaScript不借助第三个变量交换a,b两个变量值
- ViewStateDecoder查看ViewState
- JAVA面试问题—基础篇(下)
- adb 操作数据库修改某字段的值