PUBLIC - Liferay Portal Community Edition
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-18692

Wrong score management in journal search result : file html\portlet\journal_content_search\search.jsp

    Details

    • Branch Version/s:
      6.0.x
    • Similar Issues:
      Show 4 results 

      Description

      1-Try a search with a lot of results, enough to have the navigation bar displayed above the results.
      2-Look at the score you got.
      3-Navigate forward into the results, the score is always the same.

      I found a way to fix it in the jsp search.jsp:

      Removing :

       
      -row.addScore(results.score(i)); 
      

      Replacing by

       
      +String score = (String)doc.get("score");
      +row.addScore(new Float(score));
      

      The score is on the document it self.

      But may you need to fix the method

       results.score(i)

      first ....

      Thanks for your advice

      JC

        Activity

        Hide
        Pani Gui (Inactive) added a comment -

        Hi Jean-Carl AMSLER,
        Thank you for your report. I was able to reproduce this issue in Liferay Portal 6.0.6 and our current trunk head. I will update this ticket to reflect this issue.

        Show
        Pani Gui (Inactive) added a comment - Hi Jean-Carl AMSLER, Thank you for your report. I was able to reproduce this issue in Liferay Portal 6.0.6 and our current trunk head. I will update this ticket to reflect this issue.
        Hide
        Mika Koivisto added a comment -

        There's no score displayed in 6.2.x anymore.

        Show
        Mika Koivisto added a comment - There's no score displayed in 6.2.x anymore.

          People

          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Days since last comment:
              2 years, 20 weeks, 3 days ago

              Development

                Structure Helper Panel