zincsearch / zincsearch

ZincSearch . A lightweight alternative to elasticsearch that requires minimal resources, written in Go.
https://zincsearch-docs.zinc.dev
Other
17k stars 739 forks source link

When using spring-boot-starter-data-elasticsearch in java, start the Failed to parse info response. #969

Open kecikeci opened 4 months ago

kecikeci commented 4 months ago

Zincsearch version: 0.4.10

The environmental variables are as follows: image

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=eseses

Excuse me, how can I use zincsearch instead of elasticsearch normally?

kecikeci commented 4 months ago

Error reporting information:

Failed to parse info response. Check logs for detailed information - [1:314] [org.elasticsearch.client.core.MainResponse] failed to parse field [version]
zeje commented 3 months ago

is not the problem of zincseartch You need to provider your self HostProvider SingleNodeHostProvider MultiNodeHostProvider

Using starter to visit zinc is just the beginning for me, and there is still a lot of work to be done.