mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 21:05:19 +00:00
chore(server): support elasticsearch alias (#12363)
https://www.elastic.co/docs/manage-data/data-store/aliases
This commit is contained in:
@@ -81,7 +81,9 @@ export class ElasticsearchProvider extends SearchProvider {
|
||||
} catch (err) {
|
||||
if (
|
||||
err instanceof InvalidSearchProviderRequest &&
|
||||
err.data.type === 'resource_already_exists_exception'
|
||||
(err.data.type === 'resource_already_exists_exception' ||
|
||||
(err.data.type === 'invalid_index_name_exception' &&
|
||||
err.data.reason.includes('already exists as alias')))
|
||||
) {
|
||||
this.logger.debug(`table ${table} already exists`);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user