From 85f50124f86f6c8994d1fce4b2f99991245b7680 Mon Sep 17 00:00:00 2001 From: Aravinth Manivannan Date: Fri, 10 Jan 2025 19:22:55 +0530 Subject: [PATCH] feat: use domain-scoped indices in meili --- .../output/full_text_search/meili/add_product_to_store.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/inventory/adapters/output/full_text_search/meili/add_product_to_store.rs b/src/inventory/adapters/output/full_text_search/meili/add_product_to_store.rs index 00dc96b..4f83945 100644 --- a/src/inventory/adapters/output/full_text_search/meili/add_product_to_store.rs +++ b/src/inventory/adapters/output/full_text_search/meili/add_product_to_store.rs @@ -47,7 +47,7 @@ impl AddProductToStoreFTSPort for InventoryFTSMeili { product: &Product, category: &Category, ) -> InventoryFTSResult<()> { - let store_index = self.client.index(category.store_id().to_string()); + let store_index = self.client.index(format!("inventory-{}",category.store_id())); let meili_product = MeiliProduct::new(product, category); store_index .add_documents(&[meili_product], Some("product_id"))