[ 
https://issues.apache.org/jira/browse/SOLR-10642?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16132150#comment-16132150
 ] 

Uwe Schindler edited comment on SOLR-10642 at 8/18/17 1:05 PM:
---------------------------------------------------------------

Hi,
I think, I found the problem:
- In {{FacetFieldProcessor#findTopSlots}} it calculates the {{effectiveLimit}} 
and also the {{off}} (effective offset), which is then used during merging.
- It sets the offset explicitely to "0", if it is a shard request
- On the other hand, it does not raise the effective limit by the same value.

I attached a patch. All tests still pass. But I have to write a new test, that 
tries to reproduce this bug.


was (Author: thetaphi):
Hi,
I think, I found the problem:
- In {{FacetFieldProcessor#findTopSlots}} it calculates the {{effectiveLimit}} 
and also the {{off}} (effective offset), which is then used during merging.
- It sets the offset explicitely to "0", if it is a shard request
- On the other hand, it does not raise the effective limit by the same value.

I attached a patch. All tests still pass. But I vae to write a new test, that 
tries to reproduce this bug.

> Facet offset not returning enough results with solr cloud
> ---------------------------------------------------------
>
>                 Key: SOLR-10642
>                 URL: https://issues.apache.org/jira/browse/SOLR-10642
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: SolrCloud
>    Affects Versions: 6.4.1
>            Reporter: Sascha Markus
>         Attachments: SOLR-10642-6x.patch
>
>
> A collection has four shards. 
> A field has >5K terms according to the web ui for one core of the collection.
> A json facet query with limit 20 and offset 0 returns 20 buckets as expected.
> The same query with an offset of 20 returns only seven more buckets.
> With debugQuery= true I see that the first query with offset = 0  the four 
> cores return 27 different vals which are merged. The top 20 are collected for 
> the result.
> With offset=20 I see the same 27 vals for the cores. But now the first 20 are 
> skipped and seven are returned.
> And with offset=40 the same is returned as for offset=20.
> Example:
> http://mysolrserver/solr/my_collection/select?wt=json&indent=false&q=*&rows=0&json.facet={"my_facet"%3A+{"field"%3A+"some_field"%2C+"limit"%3A+20%2C+"offset"%3A+20%2C+"sort"%3A+"count+desc"%2C+"type"%3A+"field"}}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to