0 Replies Latest reply on Oct 15, 2015 7:29 PM by croy1

    How to sort the search results based on 2 or more than two metadata values

    croy1

      Hi Team,

      We need to get our search result data sorted based on two metadata field values. We tried to implement this in several ways by generating different queries but none of the logic was successful. Below are the different queries that we tried >>

      q1=en_US;x1=language;q2=fall-camp-deal;x2=content_type;sp_s=dealyindex;sp_s=dealindex
      q1=en_US;x1=language;q2=fall-camp-deal;x2=content_type;sp_s=dealyindex&sp_s=dealindex
      q1=en_US;x1=language;q2=fall-camp-deal;x2=content_type;sp_s=dealyindex,dealindex
      q1=en_US;x1=language;q2=fall-camp-deal;x2=content_type;sp_s_1=dealyindex&sp_s_2=dealindex

      The sorting is always influenced by the last sp_s value that we provide, and it always overrides the preceding values.

      Please suggest.

      Our requirement is to sort the values first based on the x-index (in rows), and then among the rows, based on the y-index. Do we have any solution for this?

      Can you please provide a relevant query for the same?

      Awaiting your response.

      Thanks.