Details

    • Similar Issues:
      Show 4 results 

      Description

      The search portlet will throw the folling error when searching first for something that gives more than 50 results, then changing the results page and then changing the search term to someting that gives less than 50 results:
      ERROR [http-apr-80-exec-187][IncludeTag:154] com.liferay.portal.kernel.search.SearchException: java.lang.IllegalArgumentException: fromIndex(50) > toIndex(23)

      Steps to reproduce:
      1. Add the search portlet to any page
      2. Search for a term that will give 50-100 results or more (so pagination is visible)
      3. Click on "next" to see the fllowing results of the search
      4. Now change the search term to some other word that give 1 - 49 results (so no pagination would be visible) and click enter

      The search portlet will show just the input box with the new term but no results at all and you'll have that error in your logs.
      Seems like changes to the current search will just change the parameter that you have changed. Changing the term will set a new term for the current search but the pagination parameters stay the same and you'll get that error when the new term gives less results.

      Changing the search term should reset all other parameters as it would be a fresh search.

        Issue Links

          Activity

          Hide
          Brian Wulbern added a comment -

          Hi David,

          Thanks for your report! I was unable to reproduce your issue with 53 web content articles, on 6.1.20 EE GA3.

          1. Created 53 wc articles
            • Named each "wc #" ascending iteratively
          2. Searched for "wc", found all 53
          3. Clicked Next
            • Searched for "5"
          4. It found wc 5 without issue

          Is there a step I missed in this process? If not, it looks no longer reproducible on 6.1.20 EE GA3. I will close this issue for now. Feel free to reopen it and describe how you're reproducing on newer releases. Alternately, you can visit our Community Message boards: http://www.liferay.com/community/forums.

          Thanks!
          Brian

          Show
          Brian Wulbern added a comment - Hi David, Thanks for your report! I was unable to reproduce your issue with 53 web content articles, on 6.1.20 EE GA3. Created 53 wc articles Named each "wc #" ascending iteratively Searched for "wc", found all 53 Clicked Next Searched for "5" It found wc 5 without issue Is there a step I missed in this process? If not, it looks no longer reproducible on 6.1.20 EE GA3. I will close this issue for now. Feel free to reopen it and describe how you're reproducing on newer releases. Alternately, you can visit our Community Message boards: http://www.liferay.com/community/forums . Thanks! Brian
          Hide
          David Kubitza added a comment -

          I don't have 6.1 GA3 to test it but in the latest 6.2 EE it seems to be fixed.

          Show
          David Kubitza added a comment - I don't have 6.1 GA3 to test it but in the latest 6.2 EE it seems to be fixed.
          Hide
          Brian Wulbern added a comment -

          Cool. Thanks for confirming, David!

          Show
          Brian Wulbern added a comment - Cool. Thanks for confirming, David!

            People

            • Assignee:
              Brian Wulbern
              Reporter:
              David Kubitza
              Recent user:
              Minhchau Dang
              Participants of an Issue:
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                44 weeks, 1 day ago

                Development

                  Structure Helper Panel