On 12/13/2016 10:55 PM, vasanth vijayaraj wrote:
> We are building an e-commerce mobile app. I have implemented Solr search and 
> autocomplete. 
> But we like the Amazon search and are trying to implement something like 
> that. Attached a screenshot 
> of what has been implemented so far
>
> The search/suggest should sort list of products based on popularity, document 
> hits and more. 
> How do we achieve this? Please help us out here. 

Your attachment didn't make it to the list.  They rarely do.  We can't
see whatever it is you were trying to include.

Sorting on things like popularity and hits requires putting that
information into the index so that each document has fields that encode
this information, allowing you to use Solr's standard sorting
functionality with those fields.  You also need a process to update that
information when there's a new hit.  It's possible, but you have to
write this into your indexing system.

Solr doesn't include special functionality for this.  It would be hard
to generalize, and it can all be done without special functionality.

Thanks,
Shawn

Reply via email to