The Java API client verifies the alias of the remote cluster

1.The remote cluster verifies the index alias

Hello, when you use Java API Client to verify the remote cluster alias, this alias index exists in the remote cluster,
However, the API interface returns false and does not exist
When using Kibana to test the remote cluster alias index, you can get the data as follows:

1.1 request

GET /normal-combind-1084,HFZQ-FZ-Elasticsearch:normal-combind-1084/_search?ignore_unavailable=true
{
  "size": 0,
  "aggs": {
    "agent_names": {
      "terms": {
        "field": "agent.name",
        "size": 100000
      }
    }
  }
}

1.2 return

{
  "took": 34,
  "timed_out": false,
  "_shards": {
    "total": 2,
    "successful": 2,
    "skipped": 0,
    "failed": 0
  },
  "_clusters": {
    "total": 1,
    "successful": 1,
    "skipped": 0
  },
  "hits": {
    "total": {
      "value": 10000,
      "relation": "gte"
    },
    "max_score": null,
    "hits": []
  },
  "aggregations": {
    "agent_names": {
      "doc_count_error_upper_bound": 0,
      "sum_other_doc_count": 0,
      "buckets": [
        {
          "key": "fzrdsj61-81.hfzq.local",
          "doc_count": 76919
        },
        {
          "key": "fzrdsj61-82.hfzq.local",
          "doc_count": 68178
        },
        {
          "key": "fzrdsj61-92.hfzq.local",
          "doc_count": 51231
        },
        {
          "key": "fzrdsj61-93.hfzq.local",
          "doc_count": 49505
        },

1.3 Verify the remote alias index

GET /HFZQ-FZ-Elasticsearch:*/_alias/normal-combind-1084

return :
{
  "error": "alias [normal-combind-1084] missing",
  "status": 404
}

How Do I Obtain the Existence of a Remote Cluster Alias Index?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.