Browse Source

修改类型为_doc

161250169 6 years ago
parent
commit
df9276f42d
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/main/java/com/es/demo/TransportClientConfig.java

+ 1 - 0
src/main/java/com/es/demo/TransportClientConfig.java

@@ -39,6 +39,7 @@ public class TransportClientConfig extends ElasticsearchConfigurationSupport {
         Settings settings = Settings.builder().put("cluster.name", name).build();
         TransportClient client = new PreBuiltTransportClient(settings);
         //client.addTransportAddress(new TransportAddress(InetAddress.getByName("192.168.68.76"), 9300));
+//        client.addTransportAddress(new TransportAddress(InetAddress.getByName("http:///es.seecoder.cn")));
         client.addTransportAddress(new TransportAddress(InetAddress.getByName(address), Integer.valueOf(port)));
         return client;
     }