feat: use domain-scoped indices in meili
This commit is contained in:
parent
d8d026b057
commit
85f50124f8
1 changed files with 1 additions and 1 deletions
|
@ -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"))
|
||||
|
|
Loading…
Reference in a new issue