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

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                4 years, 11 weeks, 2 days ago

                Subcomponents