Skip to content
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 and products in categories not showing up #3496

Closed
dszczerbinskii opened this issue Jan 23, 2025 · 4 comments
Closed

Search and products in categories not showing up #3496

dszczerbinskii opened this issue Jan 23, 2025 · 4 comments
Assignees

Comments

@dszczerbinskii
Copy link

Search and products in categories not showing after Elasticsuite install

Preconditions

Magento Version : EE 2.4.7-p3 + Hyva Enterprise

ElasticSuite Version : 2.11.10 + hyva-themes/magento2-smile-elasticsuite 1.2.4

Environment : Developer mode

Third party modules :

Steps to reproduce

  1. Create a category
  2. Create a product and assign to created category
  3. Reindex + Cache clean

Expected result

  1. Products are visible on PLP
  2. Search works properly and shows products

Actual result

Category:
Image

Search:

Image

Product assigned to category:

Image

@vahonc
Copy link
Collaborator

vahonc commented Jan 23, 2025

@dszczerbinskii,

Are you sure that Elastisuite is selected as the default Search Engine in the Magento Back office?

BR,
Vadym

@dszczerbinskii
Copy link
Author

dszczerbinskii commented Jan 23, 2025

@vahonc, yes:

Image

  • logs from debug.log:

[2025-01-23T16:02:25.344039+00:00] report.INFO: curl -XPOST 'http://elasticsearch.smok.local.net:9200/_bulk?pretty=true' -d '{"index":{"_index":"magento2_smok_default_catalog_product_20250123_160225","_id":1}}
{"entity_id":"1","attribute_set_id":"4","type_id":"simple","sku":"kij","has_options":false,"required_options":false,"created_at":"2025-01-23 11:33:54","updated_at":"2025-01-23 14:46:12","row_id":"1","created_in":"1","updated_in":"2147483647","visibility":"4","price":[{"price":123.0,"original_price":123.0,"is_discount":false,"customer_group_id":0,"tax_class_id":2,"final_price":123.0,"min_price":123.0,"max_price":123.0},{"price":123.0,"original_price":123.0,"is_discount":false,"customer_group_id":1,"tax_class_id":2,"final_price":123.0,"min_price":123.0,"max_price":123.0},{"price":123.0,"original_price":123.0,"is_discount":false,"customer_group_id":2,"tax_class_id":2,"final_price":123.0,"min_price":123.0,"max_price":123.0},{"price":123.0,"original_price":123.0,"is_discount":false,"customer_group_id":3,"tax_class_id":2,"final_price":123.0,"min_price":123.0,"max_price":123.0}],"indexed_attributes":["price","name","url_key","status","tax_class_id"],"category":[{"category_id":2,"is_virtual":"false","category_uid":"Mg=="},{"category_id":4,"is_parent":true,"is_virtual":"false","name":"upu","category_uid":"NA=="}],"name":["kij"],"url_key":["kij"],"status":[1],"option_text_status":["Enabled"],"tax_class_id":[2],"option_text_tax_class_id":["Taxable Goods"],"stock":{"is_in_stock":true,"qty":123}}
{"index":{"_index":"magento2_smok_default_catalog_product_20250123_160225","_id":2}}
{"entity_id":"2","attribute_set_id":"4","type_id":"simple","sku":"dobra","has_options":false,"required_options":false,"created_at":"2025-01-23 11:54:59","updated_at":"2025-01-23 12:23:14","row_id":"2","created_in":"1","updated_in":"2147483647","visibility":"4","price":[{"price":111.0,"original_price":111.0,"is_discount":false,"customer_group_id":0,"tax_class_id":2,"final_price":111.0,"min_price":111.0,"max_price":111.0},{"price":111.0,"original_price":111.0,"is_discount":false,"customer_group_id":1,"tax_class_id":2,"final_price":111.0,"min_price":111.0,"max_price":111.0},{"price":111.0,"original_price":111.0,"is_discount":false,"customer_group_id":2,"tax_class_id":2,"final_price":111.0,"min_price":111.0,"max_price":111.0},{"price":111.0,"original_price":111.0,"is_discount":false,"customer_group_id":3,"tax_class_id":2,"final_price":111.0,"min_price":111.0,"max_price":111.0}],"indexed_attributes":["price","name","url_key","status","tax_class_id"],"category":[{"category_id":2,"is_virtual":"false","category_uid":"Mg=="},{"category_id":3,"is_parent":true,"is_virtual":"false","name":"dupa","category_uid":"Mw=="},{"category_id":4,"is_parent":true,"is_virtual":"false","name":"upu","category_uid":"NA=="}],"name":["dobra"],"url_key":["dobra"],"status":[1],"option_text_status":["Enabled"],"tax_class_id":[2],"option_text_tax_class_id":["Taxable Goods"],"stock":{"is_in_stock":true,"qty":0}}
' [] []
[2025-01-23T16:02:25.344255+00:00] report.DEBUG: Response: {"response":{"took":37,"errors":false,"items":[{"index":{"_index":"magento2_smok_default_catalog_product_20250123_160225","_id":"1","_version":1,"result":"created","_shards":{"total":1,"successful":1,"failed":0},"_seq_no":0,"_primary_term":1,"status":201}},{"index":{"_index":"magento2_smok_default_catalog_product_20250123_160225","_id":"2","_version":1,"result":"created","_shards":{"total":1,"successful":1,"failed":0},"_seq_no":1,"_primary_term":1,"status":201}}]},"method":"POST","uri":"http://elasticsearch.smok.local.net:9200/_bulk","port":"9200","HTTP code":200,"duration":0.04105} []
[2025-01-23T16:02:25.357835+00:00] report.DEBUG: Request Body [null] []
[2025-01-23T16:02:25.357946+00:00] report.INFO: Request Success: {"method":"POST","uri":"http://elasticsearch.smok.local.net:9200/magento2_smok_default_catalog_product_20250123_160225/_refresh","port":"9200","headers":{"Host":["elasticsearch.smok.local.net"],"Content-Type":["application/json"],"Accept":["application/json"],"User-Agent":["opensearch-php/2.3.1 (Linux 6.8.0-51-generic; PHP 8.3.6)"]},"HTTP code":200,"duration":0.012759} []
[2025-01-23T16:02:25.358208+00:00] report.DEBUG: Response [{"_shards":{"total":1,"successful":1,"failed":0}}] []

@romainruaud
Copy link
Collaborator

Hi @dszczerbinskii can you share also the logs you're seeing on the category page ?

And a screenshot of the ElasticSuite > Indices page ?

Regards

@dszczerbinskii
Copy link
Author

The problem is with products that are not assigned to the shared catalog.

After adding products to the shared catalog, products in categories shows without any problem

Regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants