连接集群的代码如下:
在启动完成之后,查询某索引就会报错,查询的关键代码如下:
SearchResponse searchResponse = client.search(searchRequest, RequestOptions.DEFAULT);
这是报错:
© 2020. All Rights Reserved - Elasticsearch
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant logo are trademarks of the Apache Software Foundation in the United States and/or other countries.