9 Comments

  1. said:

    A very useful article… Keep sharing

    November 4, 2014
    Reply
  2. W.Paap said:

    Nice, but then how do you sort the right way when using .Page()?

    December 11, 2014
    Reply
    • ehabelgindy said:

      You can do the following:
      dataQuery = dataQuery.OrderByDescending(i => i[“score”]).Page(page, pageSize);
      The pagination is applied anyway after the sorting is done in Solr

      December 11, 2014
      Reply
  3. Ke said:

    Do you have the link to the issue? I am using 7.2, looks like the issue is still there.

    February 19, 2015
    Reply
    • ehabelgindy said:

      I am also having this issue in 7.2 not sure if it’s been fixed in the newer versions.

      February 19, 2015
      Reply
  4. Prathamesh said:

    Hey, I found your article very useful. Thank you. I am a bit confused and have a problem related to sorting and needed an expert’s advice. I have posted a query in StackOverflow as well. You can reply me on my email. Thank you in advance. !

    July 30, 2015
    Reply
  5. ehabelgindy said:

    Just posted a comment that might help

    July 31, 2015
    Reply
  6. Mik said:

    Hi, good and useful post! Just looking to the same with Azure search, since our client is using this engine. Anyone has an idea if that is possible? After doing some research and tests, I think is not possible to use the “Score” field in the OrderBy.. So wondering if I need to do it in the bad way (Linq on the server side).. I want to avoid this since I have pagination too!!

    June 21, 2017
    Reply

Leave a Reply to Mik Cancel reply

Your email address will not be published. Required fields are marked *