We occasionally update a product’s ID via the AdminAPI using a PATCH request like this:
Example:
PATCH {basurl}/Litium/api/admin/products/variants/{systemId}
[
{
"op": "replace",
"path": "id",
"value": "1337"
}
]
After we do this the product shows up twice in the search product search on the site.
Rebuilding product index removes the duplicate.
Is there a way to re-index just the affected product (or remove the duplicate from the index) programmatically?
Litium version: 8.22.2