Page 1 of 1

How to change product search algorithm?

Posted: Mon Jul 07, 2014 7:18 am
by gowthamgutha
I would like to change the product search algorithm in the site module. How could I do that? Do I need to write my own SolrSearchServiceImpl? I am not able to understand SolrSearchServiceImp class, its control flow, how the products are searched etc.

Where should I write the logic? Should the logic be in the JPQL query (while retrieving from the database) or in the SolrSearchServiceImpl?

Thanks in advance. Hope you will reply as soon as possible.

Re: How to change product search algorithm?

Posted: Mon Jul 07, 2014 11:03 pm
by bpolster
The answer depends on what type of change you are trying to make? Can you provide more details of what you want to do?

Re: How to change product search algorithm?

Posted: Tue Jul 08, 2014 2:28 am
by gowthamgutha
I would like to add more to the way the search results are sorted (in fact I am mistaken, it is not the product search algorithm, it is the sorting algorithm). I would like to add some weight-age to the product rating and price as well.

How could I do that?

Thanks in advance. Hope you will reply as soon as possible.