Opensearchserver sort by field

Help
2014-06-12
2014-06-12
  • Shingionline

    Shingionline - 2014-06-12

    Hi guys,

    I have indexed data from a MySQL table into OpenSearchServer v1.5.3

    I would now like results to be sorted in ascending order based on an integer field called 'site_rank' regardless of the search score. Please will you let me know how I can achieve this, I have attached an image of my current settings.

    Thanks for your help.

    Settings

     
  • Emmanuel Keller

    Emmanuel Keller - 2014-06-12

    Hi,

    Here is the process:

    • Edit your query
    • Go to the "Sorted fields" panel.
    • Add "site_rank" as first ranking field (in my picture I use the backlinkscount field)

    You may also add the score in second position, just in case documents shared the same site_rank value.

    OpenSearchServer: sort on integer field

     
    Last edit: Emmanuel Keller 2014-06-12

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks