java es 创建索引

private static TransportClient client = ElasticSearch.getClientSingle();

client.admin().indices().prepareCreate(indexName);
posted @ 2020-04-03 11:22  静思,随心  阅读(837)  评论(0编辑  收藏  举报