Fork me on GitHub
摘要: 1 package com.gxy.ESChap01; 2 3 import java.net.InetAddress; 4 5 import org.elasticsearch.action.search.SearchRequestBuilder; 6 import org.elasticsearch.action.search.SearchResponse; 7 impor... 阅读全文
posted @ 2018-09-13 15:12 Aiden郭祥跃 阅读(4007) 评论(0) 推荐(0) 编辑
摘要: 首先进入elasticsearch的bin目录 然后执行 # sh elasticsearch-plugin install analysis-smartcn 安装完成后,需要重启elasticsearch服务。 如果集群中有多台机器,则每台机器都需要安装 阅读全文
posted @ 2018-09-13 14:58 Aiden郭祥跃 阅读(957) 评论(0) 推荐(0) 编辑
摘要: 1 package com.gxy.ESChap01; 2 3 import java.net.InetAddress; 4 5 import org.elasticsearch.action.search.SearchRequestBuilder; 6 import org.elasticsearch.action.search.SearchResponse; ... 阅读全文
posted @ 2018-09-13 14:09 Aiden郭祥跃 阅读(9050) 评论(0) 推荐(0) 编辑
摘要: 1 public class ESIndexMapping { 2 3 private static String host="192.168.56.3"; // 服务器地址 4 private static int port=9300; // 端口 5 6 public static final String CLUSTER_NAME =... 阅读全文
posted @ 2018-09-13 10:15 Aiden郭祥跃 阅读(1691) 评论(0) 推荐(0) 编辑
";