I am having difficulty with my sort function. With the following sort,
documents are not sorted by score if you can see. Why sort function is not
able to sort it properly?
I appreciate your prompt answer


This is my sort function.

sort=map(and(termfreq(CustomersFavourite,852708),exists($exactqq)),1,1,1,0)
desc,map(and(termfreq(CustomersPurchased,852708),exists($exactqq)),1,1,1,0)
desc,map(exists($exactqq),1,1,NumberOfClicks,0)
desc,map(exists($exactqq),1,1,Amount,0)
desc,map(and(termfreq(InPromotion_925,true),exists($exactqq)),1,1,1,0)
desc,map(exists($exactqq),1,1,OrderCount,0) desc
exactqq={!edismax}(ProductModelNameExact:xyz OR ProductModelName_TR:xyz)

But as you can results are not sorted by score

"response": {
    "numFound": 139,
    "start": 0,
    "maxScore": 0.6251737,
    "docs": [
      {
        "score": 0.28109676
      },
      {
        "score": 0.25829598
      },
      {
        "score": 0.36092186
      },
      {
        "score": 0.6251737
      },
      {
        "score": 0.1379621
      },
      {
        "score": 0.14090014
      },
      {
        "score": 0.1379621
      },
      {
        "score": 0.14090014
      },
      {
        "score": 0.50190175
      },
      {
        "score": 0.1379621
      },
      {
        "score": 0.12398934
      },
      {
        "score": 0.1379621
      },
      {
        "score": 0.12398934
      },
      {
        "score": 0.4989637
      },
      {
        "score": 0.12585841
      },
      {
        "score": 0.12585841
      },



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Documents-with-SOLR-function-sort-are-NOT-sorted-by-score-tp4173928.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to