feat(meilisearch): add index creation

This commit is contained in:
二丫讲梵 authored and GitHub committed 2026-09-20 01:18:26 +08:00
1 parent 28cc1b9768
commit 5b937388e5
18 files changed
+304 -4

No files matched your search

@@ -942,6 +942,15 @@ pub async fn meilisearch_get_index_overview_core(
}
}
pub async fn meilisearch_create_index_core(
state: &AppState,
connection_id: &str,
input: &crate::db::meilisearch_driver::MeilisearchCreateIndexInput,
) -> Result<(), String> {
let client = meilisearch_client_core(state, connection_id).await?;
crate::db::meilisearch_driver::create_index(&client, input).await
}
pub async fn meilisearch_delete_index_core(state: &AppState, connection_id: &str, index: &str) -> Result<(), String> {
ensure_document_pool(state, connection_id).await?;
let pool = state.pool_handle(connection_id).await.ok_or("Not found")?;