使用python连接es并执行最基本的查询 from elasticsearch import Elasticsearch es = Elasticsearch(["localhost:9200"]) para = {"_source":"message"} es.search(index=index_name, q='offset: xx', doc_type='doc' ,params=para, size=10) 常用参数: index -
Spring Boot连接ES,spring-boot-starter-data-elasticsearch. 必须为集群方式!否则报错! 报错: None of the configured nodes are available 安装步骤: 进入 cd /home 1.mkdir -p es/config 2.cd es 3.mkdir data1 4.mkdir data2 5.mkdir data3 6.firewall-cmd --add-port=9300/tcp 7.firewa