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

Offset does not allow for full pagination in JSON Facet API

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 6.4.1
    • 6.6
    • Facet Module, SolrCloud
    • 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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Issue deployment