在使用Elasticsearch(简称ES)的过程中,创建索引时可能会遇到重复索引的错误,所谓的重复索引,是指尝试创建一个已经存在的索引,在ES中,索引的唯一性是通过索引的名称来保证的,如果你尝试创建一个已经存在的索引,ES会抛出一个异常,通常包含"resource_already_exists_exception"的错误信息。 (图片来源网络,侵删) 以下是关...
"type": "resource_already_exists_exception", "reason": "index [website/zIUdhInBQsOUi_4Tt2SSkQ] already exists", "index_uuid": "zIUdhInBQsOUi_4Tt2SSkQ", "index": "website" } ], "type": "resource_already_exists_exception", "reason": "index [website/zIUdhInBQsOUi_4Tt2SSkQ] alrea...
"type" : "resource_already_exists_exception", "reason" : "index [wql01/FZFVwJjWQOGwXkJMdxw0zg] already exists", "index_uuid" : "FZFVwJjWQOGwXkJMdxw0zg", "index" : "wql01" } ], "type" : "resource_already_exists_exception", "reason" : "index [wql01/FZFVwJjWQOGwXkJMdxw0zg] ...
"reason": "index [shoppingg/G5fil2wXS6On0_rJa1fYtw] already exists", "index_uuid": "G5fil2wXS6On0_rJa1fYtw", "index": "shoppingg" } ], "type": "resource_already_exists_exception", "reason": "index [shoppingg/G5fil2wXS6On0_rJa1fYtw] already exists", "index_uuid": "G...
{ "type" : "resource_already_exists_exception", "reason" : "index [test_index/c6nJovSRSjSTTkpIgFy4-g] already exists", "index_uuid" : "c6nJovSRSjSTTkpIgFy4-g", "index" : "test_index" } ], "type" : "resource_already_exists_exception", "reason" : "index [test_index/c6nJo...
{"error":{"root_cause":[{"type":"resource_already_exists_exception","reason":"index [new_index/U_T66D1VSg-o0wrWxVgKSw] already exists","index_uuid":"U_T66D1VSg-o0wrWxVgKSw","index":"new_index"}],"type":"resource_already_exists_exception","reason":"index [new_index/U_T66D1...
{"type":"resource_already_exists_exception","reason":"index [website/zIUdhInBQsOUi_4Tt2SSkQ] already exists","index_uuid":"zIUdhInBQsOUi_4Tt2SSkQ","index":"website"} ],"type":"resource_already_exists_exception","reason":"index [website/zIUdhInBQsOUi_4Tt2SSkQ] already exists","inde...
prepareExists(bookIndex).get(); if (indicesExistsResponse.isExists()) { System.out.println("索引 " + bookIndex + " 存在!"); // 删除索引,防止报异常 ResourceAlreadyExistsException[index [bookdb_index/yL05ZfXFQ4GjgOEM5x8tFQ] already exists DeleteIndexResponse deleteResponse = client.admin()...
Caused by: [document/QQLq8tSaRQ2vMDIcwTumfQ] ElasticsearchStatusException[Elasticsearch exception [type=resource_already_exists_exception, reason=index [document/QQLq8tSaRQ2vMDIcwTumfQ] already exists]] 2 testPrefixQuery方法,查询不出来以"隔壁"打头的所有数据 ...
{ "error": { "root_cause": [ { "type": "resource_already_exists_exception", "reason": "index [test-index-1/YTJUhyJNQUa-GlH3F1Stvg] already exists", "index_uuid": "YTJUhyJNQUa-GlH3F1Stvg", "index": "test-index-1" } ], "type": "resource_already_exists_exception", "reason"...