feat(elasticsearch): show index aliases on sidebar rows

This commit is contained in:
onenewcode authored and GitHub committed 2026-09-11 13:24:41 +08:00
1 parent 6299d62125
commit 61bd3cdf62
22 files changed
+432 -51

No files matched your search

+1 -1
View File
@@ -3863,7 +3863,7 @@ export async function mongoCloneCollection(connectionId: string, database: strin
export async function elasticsearchListIndices(connectionId: string): Promise<string[]> {
const collections = await documentListCollections(connectionId, "default");
return collections.map((c) => c.name);
return [...new Set(collections.flatMap((collection) => [collection.name, ...(collection.aliases ?? [])].filter((name) => name.trim())))];
}
/** Lists every Meilisearch index visible to the current connection credentials. */
+1 -1
View File
@@ -3951,7 +3951,7 @@ export async function vectorRenameCollection(connectionId: string, database: str
export async function elasticsearchListIndices(connectionId: string): Promise<string[]> {
const collections = await documentListCollections(connectionId, "default");
return collections.map((c) => c.name);
return [...new Set(collections.flatMap((collection) => [collection.name, ...(collection.aliases ?? [])].filter((name) => name.trim())))];
}
/** Lists every Meilisearch index visible to the current connection credentials. */