Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-10480

Offset does not allow for full pagination in JSON Facet API

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 6.4.1
    • Fix Version/s: 6.6
    • Component/s: Facet Module, SolrCloud
    • Security Level: Public (Default Security Level. Issues are Public)
    • Labels:
      None

      Description

      I have a SolrCloud cluster and when I use the JSON facet API to do term faceting like this:

      json.facet={"results":{"type": "terms", "field": "my_field", "limit": 100, "offset": 100, "numBuckets": true}}

      it does work correctly.
      However the numBuckets tells me in return that I have more than 6 millions buckets but as soon as I start to grow the offset value to browse these buckets, it doesn't return anything anymore (when I reach an offset of around 300).
      What is even weirder is that if I put a bigger limit, like 10'000, I can increase the offset until around 29'000 before it doesn't return anything.
      And the returned numBuckets doesn't change all the while.

      It is a big problem because we can't paginate till the end of the buckets.

      Might be related to SOLR-7452, I don't know...

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                yseeley@gmail.com Yonik Seeley
                Reporter:
                The_matrixme Maxime Darçot
              • Votes:
                1 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: