Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-37399

Search returns 0 results after reaching StartIndex=1000

    XMLWordPrintable

Details

    Description

      When a search contains more than 1000 results, only the first 100 pages can be accessed.
      When switching to page 101 (startIndex=1000), the result page shows "no results found". This issue is also present in the RestAPI. Using the RestAPI, when there are over 1000 results, once the startIndex reaches 1000, Confluence returns zero results.

      Steps to Reproduce

      1. Perform a search in Confluence that returns 1000+ results.
      2. Page through the results by clicking page 100 or changing the StartIndex value in the URL to 1000.

      Expected Results

      Additional search results display.

      Actual Result

      A message "No results found for confluence. Please try one of the following suggestions:
      Use more general search terms or consult the online documentation for tips.
      If you are filtering by space, content, last modification date or contributor, try removing or adjusting the filter" is received.

      See attachments.

      Notes

      This behavior is by design. There is system property confluence.search.max.results that limits the number of pages returned in any search query. The default value is 1000.

      Workaround

      Modify the Java system property confluence.search.max.results e.g. -Dconfluence.search.max.results. Changing 1000 to 2000 will increase the number of pages returned to 2000

      Attachments

        1. search.png
          search.png
          139 kB
        2. search1.png
          search1.png
          88 kB

        Activity

          People

            huyle Huy Le (Inactive)
            f461686b28ec Michael Ammann
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: