上一页 1 2 3 4 5 6 ··· 14 下一页
摘要: 1.Cluster(集群)# 集群名称标识了你的集群,自动探查会用到它。默认值为elasticsearch# 如果你在同一个网络中运行多个集群,那就要确保你的集群名称是独一无二的。## cluster.name: my-application 2.Node(节点)# 节点名称会在启动的时候自动生成, 阅读全文
posted @ 2019-07-17 12:16 努力挣扎的小兵 阅读(644) 评论(0) 推荐(0) 编辑
摘要: https://www.elastic.co/guide/cn/elasticsearch/guide/current/mapping.html如果有两个不同的类型,每个类型都有同名的字段,但映射不同(例如:一个是字符串一个是数字),将会出现什么情况?简单回答是,Elasticsearch 不会允许 阅读全文
posted @ 2019-07-17 12:16 努力挣扎的小兵 阅读(8717) 评论(0) 推荐(0) 编辑
摘要: discovery.zen.minimum_master_nodes: 2这个参数决定了要选举一个Master需要多少个主节点(最少候选主节点数)。默认值是1。官方给出的建议是 N/2 + 1,N是集群中主节点的数量,例如一个有3个主节点的集群,minimum_master_nodes 应该被设置成 阅读全文
posted @ 2019-07-17 12:15 努力挣扎的小兵 阅读(378) 评论(0) 推荐(0) 编辑
摘要: https://www.elastic.co/guide/cn/elasticsearch/guide/current/dynamic-mapping.html#dynamic-mapping当 Elasticsearch 遇到文档中以前 未遇到的字段,它用 dynamic mapping 来确定字 阅读全文
posted @ 2019-07-17 12:14 努力挣扎的小兵 阅读(1036) 评论(0) 推荐(0) 编辑
摘要: 查看所有索引的配置信息GET /_settings 查看某个索引的配置信息 创建索引时设置 设置索引的副本信息(分片个数不允许修改) index.mapping.total_fields.limit:索引中的最大字段数。默认值为1000。index.mapping.nested_fields.lim 阅读全文
posted @ 2019-07-17 12:12 努力挣扎的小兵 阅读(3491) 评论(0) 推荐(0) 编辑
摘要: 1. 查看ES集群健康状态 查看指定索引库的健康状态http://localhost:9200/_cluster/health/index_name?prettyhttp://localhost:9200/_cluster/health/index_name,index_name2?pretty 阅读全文
posted @ 2019-07-17 12:11 努力挣扎的小兵 阅读(21670) 评论(0) 推荐(0) 编辑
摘要: 1.单条所以插入//第一个参数:索引名;第二个参数:索引类型;第三个参数:索引ID(相同的id时修改数据,默认为随机字符串)IndexResponse indexResponse = client.prepareIndex("twitter", "json","1").setSource(json) 阅读全文
posted @ 2019-07-17 12:10 努力挣扎的小兵 阅读(2656) 评论(0) 推荐(0) 编辑
摘要: 索引别名API允许使用一个名字来作为一个索引的别名,所有API会自动将别名转换为实际的索引名称。 别名也可以映射到多个索引,别名不能与索引具有相同的名称。别名可以用来做索引迁移和多个索引的查询统一,还可以用来实现视图的功能 查看所有别名GET /_aliases 查看某个别名下的索引GET /_al 阅读全文
posted @ 2019-07-17 12:09 努力挣扎的小兵 阅读(3880) 评论(0) 推荐(0) 编辑
摘要: 使用sql插件执行如下语句的时候报错http://10.127.0.1:9200/_sql?sql=select * from test limit 1000000 错误信息:{"error":{"root_cause":[{"type":"query_phase_execution_excepti 阅读全文
posted @ 2019-07-17 11:41 努力挣扎的小兵 阅读(4542) 评论(0) 推荐(0) 编辑
摘要: 检查bootstrap.memory_lock设置是否生效 如果您看到mlockall为false,则表示mlockall请求失败。您还将在日志中看到一行"Unable to lock JVM Memory"。在Linux / Unix系统上最可能的原因是运行Elasticsearch的用户没有锁定 阅读全文
posted @ 2019-07-17 11:39 努力挣扎的小兵 阅读(2144) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 14 下一页