2 Replies Latest reply: May 4, 2012 11:28 AM by Terry Wilson RSS

    how to use Relevance Ranking Key with Sort Key

    sameerdh
      Hi all,

      Just wanted to know whether we can use Relevance Ranking Key with Sort Key...??

      OR

      Both are different and one should be used at a time...??

      Sameer
        • 1. Re: how to use Relevance Ranking Key with Sort Key
          PCK Excogis
          Hi Sameer.

          If you submit a search query to the MDEX that explicitly sorts the results (Ns parameter), then any relevance ranking you had configured is overridden. If you want to include the sort functionality within your relevance ranking strategy, you can use the Static module.

          Regards
          Pavlos
          • 2. Re: how to use Relevance Ranking Key with Sort Key
            Terry Wilson
            You can use the static module in the rel rank or if you wish to stratify to boost certain records to appear at the top of your search results then you can use this approach with your current rel rank search interface. This is an example using the wine demo with cross field matching enabled on the search interface All


            In order for the query * portion to respect you current rel rank you will need to construct a Ntx query like so and not use Ns.

            &Ntx=mode+matchallpartial+rel+stratify(collection()/record[P_WineID="89955"],collection()/record[P_WineID="73036"],*),All