fix: index name is domain scoped

This commit is contained in:
Aravinth Manivannan 2025-01-10 19:09:05 +05:30
parent 711f9abb6b
commit 7fd781b03d
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"))