Uploaded image for project: 'Atlassian Intelligence'
  1. Atlassian Intelligence
  2. AI-882

REST API /wiki/rest/api/search returns incorrect totalSize value

    • 1
    • Minor

      Issue Summary

      The value of totalSize in the response is incorrect. 

      Steps to Reproduce

      1. Call the REST API endpoint - Search content
        https://your-domain.atlassian.net/wiki/rest/api/search?cql=\ {cql}

      Expected Results

      The value of the "totalSize" key matches the number of contents.

      Actual Results

      It returns as below.

      "totalSize": 10000
      

      Workaround

      Currently there is no known workaround for this behavior. A workaround will be added here when available.

            [AI-882] REST API /wiki/rest/api/search returns incorrect totalSize value

            Definitely a bug seems to have been caused by recent changes to the Opensearch client, causing the max results returned to be capped at 10k.

            Using pagination cursors still works and returns results beyond 10k, however the result counts in CQL and in Advanced search are wrong.

            Matthew Dyer (Inactive) added a comment - Definitely a bug seems to have been caused by recent changes to the Opensearch client, causing the max results returned to be capped at 10k. Using pagination cursors still works and returns results beyond 10k, however the result counts in CQL and in Advanced search are wrong.

            Hello, friendly reminder about concern whether this is planned future where search restricted to 10.000 only. Thanks before. 

            Andrew Jauhari added a comment - Hello, friendly reminder about concern whether this is planned future where search restricted to 10.000 only. Thanks before. 

              25226cdb2311 Yu
              a9811fcf7424 Kaz Nobutani
              Affected customers:
              3 This affects my team
              Watchers:
              7 Start watching this issue

                Created:
                Updated: