[
https://issues.apache.org/jira/browse/SOLR-10480?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15983791#comment-15983791
]
Yonik Seeley edited comment on SOLR-10480 at 4/25/17 11:06 PM:
---------------------------------------------------------------
OK, found and patched the issue.
As an aside, paging with an offset with distributed faceting has the same issue
as distributed search. To return buckets N though N+10, each shard returns 0
through N+10, the merger sorts the merged bucket list, and then finally N
through N+10 is returned to the client.
was (Author: [email protected]):
OK, found and patched the issue.
As an aside, paging with an offset with distributed faceting has the same issue
as distributed search. To return buckets N-N+10, each shard returns 0-N+10,
the merger sorts the merged bucket list, and then finally N-N+10 is returned to
the client.
> Offset does not allow for full pagination in JSON Facet API
> -----------------------------------------------------------
>
> Key: SOLR-10480
> URL: https://issues.apache.org/jira/browse/SOLR-10480
> Project: Solr
> Issue Type: Bug
> Security Level: Public(Default Security Level. Issues are Public)
> Components: Facet Module, SolrCloud
> Affects Versions: 6.4.1
> Reporter: Maxime Darçot
> Assignee: Yonik Seeley
> Attachments: SOLR-10480.patch
>
>
> I have a SolrCloud cluster and when I use the JSON facet API to do term
> faceting like this:
> bq. 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...
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]