看,灰机...

ElasticSearch是2.3的。API 里面有一个should关键字,这个关键字是干嘛的?

Elasticsearchqq123 回复了问题 • 2 人关注 • 1 个回复 • 5449 次浏览 • 2016-05-26 10:07 • 来自相关话题

发布个es迁移工具:elasticsearch-migration

Elasticsearchmedcl 发表了文章 • 135 个评论 • 35032 次浏览 • 2016-05-23 17:09 • 来自相关话题

https://github.com/medcl/elasticsearch-migration
支持多个版本间的数据迁移,使用scroll+bulk
1.版本支持1.x,2.x.5.0 (0.x未测试)
2.支持http basic auth 认证的es集群
3.支持导入覆盖索引名称(目前只支持单个索引导入的情况下可指定)
4.支持index setting和mapping的同步(相关es大版本,2.x和5.0之间不支持)
5.支持dump到本地文件
6.支持从dump文件加载导入到指定索引
 
欢迎测试!
 
#copy index index_name from 192.168.1.x to 192.168.1.y:9200
./bin/esm -s http://192.168.1.x:9200 -d http://192.168.1.y:9200 -x index_name -w=5 -b=10 -c 10000

#copy index src_index from 192.168.1.x to 192.168.1.y:9200 and save with dest_index
./bin/esm -s http://localhost:9200 -d http://localhost:9200 -x src_index -y dest_index -w=5 -b=100

#support Basic-Auth
./bin/esm -s http://localhost:9200/ -x "src_index" -y "dest_index" -d http://localhost:9201 -n admin:111111

#copy settings and override shard size
./bin/esm -s http://localhost:9200/ -x "src_index" -y "dest_index" -d http://localhost:9201 -m admin:111111 -c 10000 --shards=50 --copy_settings

#copy settings and mapping, recreate target index, add query to source fetch, refresh after migration
./bin/esm -s http://localhost:9200/ -x "src_index" -q=query:phone -y "dest_index" -d http://localhost:9201 -c 10000 --shards=5 --copy_settings --copy_mapping --force --refresh

#dump elasticsearch documents into local file
./bin/esm -s http://localhost:9200 -x "src_index" -m admin:111111 -c 5000 -b -q=query:mixer --refresh -o=dump.bin

#loading data from dump files, bulk insert to another es instance
./bin/esm -d http://localhost:9200 -y "dest_index" -n admin:111111 -c 5000 -b 5 --refresh -i=dump.bin

 

ES错误 java.lang.OutOfMemoryError: unable to create new native thread

Elasticsearchaslan1011 回复了问题 • 3 人关注 • 2 个回复 • 6006 次浏览 • 2019-11-18 19:11 • 来自相关话题

请问 es 如何在分词时加入 符号等特殊字符为搜索条件

回复

Elasticsearchting314193222 回复了问题 • 2 人关注 • 2 个回复 • 16994 次浏览 • 2016-05-24 14:34 • 来自相关话题

线上大数据实时系统,如何正确重启Es

Elasticsearchdisheng 回复了问题 • 13 人关注 • 8 个回复 • 8980 次浏览 • 2016-11-22 22:01 • 来自相关话题

fielddata加载是全加载么

Elasticsearchmedcl 回复了问题 • 3 人关注 • 1 个回复 • 4943 次浏览 • 2016-05-24 15:12 • 来自相关话题

elasticsearch-sql 返回结果集json解析工具

回复

Elasticsearch匿名用户 发起了问题 • 1 人关注 • 0 个回复 • 5368 次浏览 • 2016-05-20 20:48 • 来自相关话题

怎样缓存fielddata?

Elasticsearchbng 回复了问题 • 2 人关注 • 2 个回复 • 5836 次浏览 • 2016-05-29 19:20 • 来自相关话题

elasticsearch 如何查看文件存储类型

回复

Elasticsearch匿名用户 发起了问题 • 1 人关注 • 0 个回复 • 5057 次浏览 • 2016-05-20 15:14 • 来自相关话题

ElasticSearch的错误:java.io.IOException: 远程主机强迫关闭了一个现有的连接。

Elasticsearchmedcl 回复了问题 • 3 人关注 • 1 个回复 • 19220 次浏览 • 2016-06-13 10:56 • 来自相关话题

es中,nested类型同字段2组不同的键值对查询问题

Elasticsearchcl1321 回复了问题 • 3 人关注 • 2 个回复 • 5453 次浏览 • 2019-02-22 09:48 • 来自相关话题

elasticsearch 索引pdf等类型文件性能如何优化?

Elasticsearchluoqingsong 回复了问题 • 11 人关注 • 6 个回复 • 11792 次浏览 • 2018-05-08 09:22 • 来自相关话题

ES能否找到符合某一规则的某些域存在的所有结果?

ElasticsearchGoldbach 回复了问题 • 2 人关注 • 2 个回复 • 5416 次浏览 • 2016-05-23 08:23 • 来自相关话题

如何写一个es插件

回复

Elasticsearchtianzhaixing 发起了问题 • 1 人关注 • 0 个回复 • 4862 次浏览 • 2016-05-19 18:19 • 来自相关话题

TransportClient 使用时需要用连接池吗

Elasticsearchhelloes 回复了问题 • 2 人关注 • 1 个回复 • 11983 次浏览 • 2016-05-19 21:05 • 来自相关话题