Sorting apache solr results on the basis of information in query field ids -


i finding difficult sort solr results on basis of field value.

let's suppose have 10 search results query string 'test'.

each result returns detail values includes pid containing integer values.

i want results pid=3, pid=4 , pid=10 should sorted in user defined order such (10, 3, 4), means that:

  1. result pid=10
  2. result pid=3
  3. result pid=4

this order neither asc nor desc. user defined order.

look this custom sort in solr. happy coding


Comments