0

I want to sort my solr search results based on popularity.

We need to compose the popularity by combining two custom fields: ranking and release date with a formula such as (ranking * release date). This popularity needs be precomputed and put in a separate index.

Can anyone help on how this can be done?

Regards.

anand tiwari
  • 157
  • 2
  • 10

1 Answers1

0

You can calculate the field at client side and index it as a separate field in Solr.
You can use Function Queries as well. Check product which will allow you to use product of two fields and sort on that value

Jayendra
  • 52,349
  • 4
  • 80
  • 90