Skip to Content
author's profile photo Former Member
Former Member

Search and Suggest (SnS) feature

Hi All,

In my current B2C project, I have to implement Search and Suggest feature. For eg - If I am entering a product name as Apple Iphone then the auto-complete text box should display Apple Iphone 6 | Apple Iphone 6s | Apple Iphone 5 products. I need to configure all the Search and Suggest word bank in my SOLR.

Can anyone help me out with this requirement.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Dec 09, 2014 at 03:25 PM

    Please get a look on this method : de.hybris.platform.yacceleratorstorefront.controllers.pages.SearchPageController.getAutocompleteSuggestions(String, String)

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 09, 2014 at 03:26 PM

    you can also overide the autosuggest query to use you specific fields by overdding this method :

    de.hybris.platform.solrfacetsearch.suggester.impl.DefaultSolrAutoSuggestService.getAutoSuggestionsForQuery(LanguageModel, SolrIndexedTypeModel, String)

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.