elasticsuite
elasticsuite copied to clipboard
How to configure the Autocomplete Result template
I am trying to configure the Autocomplete Result template so that it is shown like this
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
This is how it is showing on the frontend
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
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 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.
@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,
To be able to see categories in autocomplete you should set to Yes the option Display Category in Autocomplete on your categories settings.
As for displaying the Search Terms, are you able to see them on the Magento dashboard?
Are you sure that all modules of Elasticsuite are enabled and Magento cron is running?
BR, Vadym
@vahonc
I checked and found out that display category in Autocomplete is set to Yes. I randomly checked this for multiple categories.
On Magento Dashboard I see the following search terms:
I checked and saw that all Elasticsuite modules are enabled except 1.
Screenshot of the disabled module
Enabled Modules
Also cron job is running fine.
@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 I have a website where it is working fine, and there I saw that Smile_ElasticsuiteTracker module is disabled there too.
Disabled modules list
@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 yes sure, I am trying this and will let you know how it goes.
Hello @MatridTechnologies,
Have you solved your issue?
BR, Vadym
@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.
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.