Uploaded image for project: '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

      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 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 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 Mika Koivisto added a comment -

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

        Show
        mika.koivisto 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:
              3 years, 28 weeks, 5 days ago

              Development

                Subcomponents