feat: use domain-scoped indices in meili

This commit is contained in:
Aravinth Manivannan 2025-01-10 19:22:55 +05:30
parent d8d026b057
commit 85f50124f8
Signed by: realaravinth
GPG key ID: F8F50389936984FF

View file

@ -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"))