-
Notifications
You must be signed in to change notification settings - Fork 340
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Search for a specific SKU is missing a product #3462
Comments
Hi @OvalMedia please post the mapping of the two indices (dev/prod). please ensure the product is found in both environment with the entity_id (?q=entity_id:xxx) Regards |
Result on prod:
On dev the result is actually a long one and it includes the product I am looking for. Mapping on prod:
...and dev:
|
Hello @OvalMedia, If the ID of the product is expected to be the same on both environment, then it looks like the product might be simply missing from the index because it has been disabled. Regards, |
Yes, it is missing. But why? And how do I fix it? Both systems are identical except for the versions mentioned above. |
Is there a way to check why a product is missing or to reset the index somehow? |
I tried |
Hello @OvalMedia, A As a general rule, for a product to be indexed and/or visible in a store, it needs to
So if the problem is limited to only one product, you could get away with verifying all those, save the product in Magento admin and wait for the diff indexing to push the product. Regards, |
Thx. At this point we created a new product and copied over all the data and the product reappeared. Must be something with that particular entity that is messed up. In case I missed to mention it: the detail page of the product was fine and the product could be ordered. Just catalog and search were not working. |
Is there a way to identify products that, for some reason, do not end up in the index? |
I get this error in the system.log after saving a missing product in the backend: |
Hello @OvalMedia, It looks like, Elasticsearch rejected the document with id Have you checked the data in the database for your problematic product? BR, |
Ok, we are getting closer. I checked the table |
Maybe this is related to some product imports? |
A custom module's plugin This module has been around since forever. Why it just started making trouble is beyond me. A couple of weeks ago we updated to the latest version of ESS, maybe something changed there? Anyhow, problem is fixed. Thanks for your time. |
Production-System:
Magento ver. 2.4.3-p1
Elasticsuite 2.10.23.2
Elasticsearch 7.10.2
PHP 7.4.33
Development-System:
Magento ver. 2.4.3-p1
Elasticsuite 2.10.23.2
Elasticsearch 7.8.1
PHP 7.4.33
I was just pointed to an issue with the search for an SKU ("CA-1"). Although the product exists and can be found through the categories, the search completely ignores this product.
To rule out magento issues I ran a query on the command line:
curl -X GET "http://localhost:9200/my_index/_search?q=CA-1&pretty"
I ran this on both my systems, dev and prod. While in production the product could not be found in my dev system it seems to be alright. (I wanted to paste both results here but github complained it would be too long).
Of course I have run indexer:reindex but that did not help at all.
This feels like something in the prod index is stuck and needs a reset or something?
How can I narrow this down so the product can be found?
Thank you
The text was updated successfully, but these errors were encountered: