Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-9550

[Search service v2] resultsPerPage and maxResults parameters not well implemented

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 4.2.1, 4.3.0
    • 4.2.0
    • None
    • None
    • 4.2.1

      With a Solr query returning 4 result, If I set parameter values :

      1. resultsPerPage=<empty> + maxResults=2
        I expect to have only one page with 2 results but I have a page with two results and the pagination bar inviting me to go to page 2
      2. resultsPerPage=1 + maxResults=2
        I expect to have only two pages with 1 result each but I have 4 pages with 1 result each and the pagination bar inviting me to go to page 3&4 etc.
         

      The bug is around SearchServicegenerator:306 and SaxResultsSearchComponent:146

            Unassigned Unassigned
            sprieul Simon Prieul (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: