This page has moved to Adobe Experience League and will be redirected soon.
Live search catalog not synchronized
Live search catalog not synchronized
This article provides solutions for the Adobe Commerce issue where your catalog data is not synchronized correctly when using the Live Search extension.
Affected products and versions
- Adobe Commerce 2.4.x with Live Search extension installed
Issue
Your catalog data is not synchronized correctly, or a new product was added but is not appearing in search results.
Steps to reproduce
- Configure and connect Live Search for your Adobe Commerce instance as described in Install Live Search > Configure API keys in our user documentation.
- After 8 hours, verify the exported catalog data as described in Install Live Search > Verify export in our user documentation.
- After 8 hours, test the connection as described in Install Live Search > Test the connection in our user documentation.
Or
- Add a new product to the catalog.
- Try running a search query using the product name or other searchable attributes after 15-20 minutes from the time Magento indexer + cron have run to sync data to backend service.
Expected result
- Exported catalog data can be verified
- Connection is successful
- New product appears in search results.
Actual result
Exported catalog cannot be verified and/or connection is not established because the API key has changed.
Solution
There are several things you might do to try and fix the catalog syncing issues.
Wait for changes to be applied
Once you configure and connect, it can take over 8 hours for the index in ES (Elasticsearch) to be created and search results to be returned (same timeframe is also true for delta updates as of now, but will be improved in the future).
Sync product data for a specific SKU
If your product data is not synced correctly for a specific SKU, do the following:
-
Use the following SQL query and verify that you have the data you expect in the feed_data
column. Also, make a note of the modified_at
timestamp.
select * from catalog_data_exporter_products where sku = '<your_sku>' and store_view_code = '<your_ store_view_code>';
-
If you do not see the correct data, try to reindex using the following command and rerun the SQL query in step 1 to verify the data:
bin/magento indexer:reindex catalog_data_exporter_products
-
If you still do not see the correct data, create a Support ticket.
Check timestamp of last product export
-
If you see the correct data in catalog_data_exporter_products
, use the following SQL query to check the timestamp of the last export. It should be after the modified_at
timestamp:
select * from flag where flag_code = 'products-feed-version';
-
If the timestamp is older, you can either wait for the next cron run or trigger it yourself using the following command:
bin/magento cron:run --group=saas_data_exporter
-
Wait for <>
time (time for incremental updates). If you still do not see your data, create a Support ticket.
Sync specific attribute code
If your product attribute data isn't synced correctly for a specific attribute code, do the following:
-
Use the following SQL query and verify that you have the data you expect in the feed_data
column. Also, make a note of the modified_at
timestamp.
select * from catalog_data_exporter_product_attributes where json_extract(feed_data, '$.attributeCode') = '<your_attribute_code>' and sto1re_view_code = '<your_ store_view_code>';
-
If you do not see the correct data, use the following command to reindex and then rerun the SQL query in step 1 to verify the data.
bin/magento indexer:reindex catalog_data_exporter_product_attributes
-
If you still do not see the correct data, create a Support ticket.
Check timestamp of last product attribute export
If you see the correct data in catalog_data_exporter_product_attributes
:
-
Use the following SQL query to check the timestamp of the last export. It should be after the modified_at
timestamp.
select * from flag where flag_code = 'product-attributes-feed-version';
-
If the timestamp is older, you can either wait for the next cron run or trigger it yourself using the following command:
bin/magento cron:run --group=saas_data_exporter
-
Wait for 15-20 minutes (time for incremental updates). If you still do not see your data, please create a Support ticket.
Sync after API configuration change
(Known issue) If you have changed your API configuration, which results in a change in your Data Space ID and find that your catalog changes are no longer syncing, run the following commands:
bin/magento saas:resync --feed products
bin/magento saas:resync --feed productattributes
See Onboard Live Search in our user documentation.