elasticsuite icon indicating copy to clipboard operation
elasticsuite copied to clipboard

How to configure the Autocomplete Result template

Open MatridTechnologies opened this issue 1 year ago • 11 comments

I am trying to configure the Autocomplete Result template so that it is shown like this

image

I have followed Smile Elasticsuite Automcomplete wiki but could not make it work. This is the link I followed

https://github.com/Smile-SA/elasticsuite/wiki/AutocompleteConfiguration

Screenshot from Stores > Configuration where I have enabled the options as asked in the wiki

image

This is how it is showing on the frontend

image

What changes do I need to make to get the desired result?

Magento version - 2.4.6-p3 ElasticSuite Open Source Version - 2.11.4.1

Edit I have changed to default theme as suggested by @vahonc and now the design is better but still Search Terms and Categories is not showing in Autocomplete box. I need to show these 2 section in this box. Screenshot

image

MatridTechnologies avatar Dec 06 '23 14:12 MatridTechnologies

Hello @MatridTechnologies

It seems that you are using a custom theme that is not based on the default Magento theme like Luma. In this case, you should perform updating your autocomplete template and styles by yourself.

BR, Vadym

vahonc avatar Dec 06 '23 15:12 vahonc

@vahonc ok I am checking by applying the default theme. But if you see the content then you will find that it is not showing search Terms or Categories in the autoComplete template. It is only showing products.

MatridTechnologies avatar Dec 06 '23 15:12 MatridTechnologies

@vahonc I have updated my question according to your suggestions. You can see Search Terms and categories is still not showing. How I can add these 2 sections in the Autocomplete pop up?

MatridTechnologies avatar Dec 06 '23 15:12 MatridTechnologies

@MatridTechnologies,

To be able to see categories in autocomplete you should set to Yes the option Display Category in Autocomplete on your categories settings.

Screenshot from 2023-12-07 11-20-46

As for displaying the Search Terms, are you able to see them on the Magento dashboard?

Screenshot from 2023-12-07 11-49-00

Are you sure that all modules of Elasticsuite are enabled and Magento cron is running?

BR, Vadym

vahonc avatar Dec 07 '23 09:12 vahonc

@vahonc I checked and found out that display category in Autocomplete is set to Yes. I randomly checked this for multiple categories. image

On Magento Dashboard I see the following search terms: image

I checked and saw that all Elasticsuite modules are enabled except 1. Screenshot of the disabled module image

Enabled Modules image

Also cron job is running fine. image

MatridTechnologies avatar Dec 07 '23 10:12 MatridTechnologies

@MatridTechnologies

Yes, you need to have Smile_ElasticsuiteTracker. That's the module responsible for collecting data. In other cases, you will see only search terms that are collected from the search result page (what you see on the Magento dashboard), so not the partial ones that are typed in the autocomplete.

Have you tried to type in the search field some things that are related to your category (e.g. Hole, Bathroom, etc) to check if the search engine will suggest some result?

BR, Vadym

vahonc avatar Dec 07 '23 10:12 vahonc

@vahonc I have a website where it is working fine, and there I saw that Smile_ElasticsuiteTracker module is disabled there too.

image

Disabled modules list image

MatridTechnologies avatar Dec 07 '23 11:12 MatridTechnologies

@MatridTechnologies,

I have a website where it is working fine, and there I saw that Smile_ElasticsuiteTracker module is disabled there too.

Great! So, it's a definitely configuration issue and you just need to compare these two websites (check layouts and templates, configurations in Admin Panel).

BR, Vadym

vahonc avatar Dec 07 '23 11:12 vahonc

@vahonc yes sure, I am trying this and will let you know how it goes.

MatridTechnologies avatar Dec 07 '23 11:12 MatridTechnologies

Hello @MatridTechnologies,

Have you solved your issue?

BR, Vadym

vahonc avatar Jan 03 '24 16:01 vahonc

@vahonc It is not 100% solved but I have moved forward with the solution. We had a customization in the custom theme for Magento_Search module. I have removed it and now the design is better but still I am not getting search Terms, and categories in the Auto complete pop up. Looking into that.

MatridTechnologies avatar Jan 04 '24 13:01 MatridTechnologies

This issue was waiting update from the author for too long. Without any update, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now. Please don't hesitate to comment on the bug if you have any more information for us; we will reopen it right away! Thanks for your contribution.

github-actions[bot] avatar Mar 27 '24 15:03 github-actions[bot]