摘要:
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... 阅读全文
摘要:
首先进入elasticsearch的bin目录 然后执行 # sh elasticsearch-plugin install analysis-smartcn 安装完成后,需要重启elasticsearch服务。 如果集群中有多台机器,则每台机器都需要安装 阅读全文
摘要:
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; ... 阅读全文
摘要:
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 =... 阅读全文