When using spring-boot-starter-data-elasticsearch in java, start the Failed to parse info response.
Author: kecikeciCreated Jul 11, 2024Updated Jul 29, 2024
Zincsearch version: 0.4.10
The environmental variables are as follows:
http://127.0.0.1:4080/es/ returns the following:
{
"name": "zinc",
"cluster_name": "N/A",
"cluster_uuid": "N/A",
"version": {
"number": "7.17.5",
"build_flavor": "default",
"build_hash": "f8b1436487807b107659d6f444a52c9fa442d3c0",
"build_date": "2024-01-14T09:43:19Z",
"build_snapshot": false,
"lucene_version": "N/A",
"minimum_wire_version": "N/A",
"minimum_index_compatibility": "N/A"
},
"tagline": "You Know, for Search"
}With the official version of elasticsearch, it can be started and used normally, and the return value of info is:
{
"name" : "elasticsearch-6f48cdddbd-dnh26",
"cluster_name" : "elasticsearch",
"cluster_uuid" : "Cb-nxLyCTVil0C6HVvawew",
"version" : {
"number" : "7.17.5",
"build_flavor" : "default",
"build_type" : "docker",
"build_hash" : "8d61b4f7ddf931f219e3745f295ed2bbc50c8e84",
"build_date" : "2022-06-23T21:57:28.736740635Z",
"build_snapshot" : false,
"lucene_version" : "8.11.1",
"minimum_wire_compatibility_version" : "6.8.0",
"minimum_index_compatibility_version" : "6.0.0-beta1"
},
"tagline" : "You Know, for Search"
}The application.properties of springboot is configured as follows:
#zincsearch
spring.elasticsearch.uris=http://127.0.0.1:4080
spring.elasticsearch.path-prefix=/es
spring.elasticsearch.username=admin
spring.elasticsearch.password=eseses
#elasticsearch
#spring.elasticsearch.uris=http://127.0.0.1:9200
#spring.elasticsearch.path-prefix=/
#spring.elasticsearch.username=elastic
#spring.elasticsearch.password=esesesExcuse me, how can I use zincsearch instead of elasticsearch normally?
Source: zincsearch/zincsearch