You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Munendra S N (JIRA)" <ji...@apache.org> on 2019/07/02 15:16:01 UTC

[jira] [Resolved] (SOLR-8314) Group offset not working in SolrCloud with more than one shard

     [ https://issues.apache.org/jira/browse/SOLR-8314?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Munendra S N resolved SOLR-8314.
--------------------------------
       Resolution: Fixed
         Assignee: Munendra S N
    Fix Version/s: 8.2

This is fixed in SOLR-13404

> Group offset not working in SolrCloud with more than one shard
> --------------------------------------------------------------
>
>                 Key: SOLR-8314
>                 URL: https://issues.apache.org/jira/browse/SOLR-8314
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 5.3.1
>            Reporter: Rafał Kuć
>            Assignee: Munendra S N
>            Priority: Major
>             Fix For: 8.2
>
>
> Hi, 
> Unless I'm missing something it seems that there is a problem with group.offset in SolrCloud. For the example cloud Solr and the example data take a look at the following two queries:
> {noformat}
> http://localhost:8983/solr/gettingstarted/select?q=*:*&sort=id+desc&fl=id&group=true&group.query=cat:electronics&group.query=cat:connector&rows=5&group.limit=0&group.offset=0&wt=json&indent=on
> {noformat}
> And:
> {noformat}
> http://localhost:8983/solr/gettingstarted/select?q=*:*&sort=id+desc&fl=id&group=true&group.query=cat:electronics&group.query=cat:connector&rows=5&group.limit=0&group.offset=4&wt=json&indent=on
> {noformat}
> The response for the first query looks as follows:
> {noformat}
> {
>   "responseHeader":{
>     "status":0,
>     "QTime":8,
>     "params":{
>       "q":"*:*",
>       "indent":"on",
>       "fl":"id",
>       "group.limit":"0",
>       "sort":"id desc",
>       "group.offset":"0",
>       "group.query":["cat:electronics",
>         "cat:connector"],
>       "rows":"5",
>       "wt":"json",
>       "group":"true"}},
>   "grouped":{
>     "cat:connector":{
>       "matches":32,
>       "doclist":{"numFound":2,"start":0,"docs":[
>           {
>             "id":"IW-02"},
>           {
>             "id":"F8V7067-APL-KIT"}]
>       }},
>     "cat:electronics":{
>       "matches":32,
>       "doclist":{"numFound":12,"start":0,"docs":[
>           {
>             "id":"VS1GB400C3"},
>           {
>             "id":"VDBDB1A16"},
>           {
>             "id":"TWINX2048-3200PRO"},
>           {
>             "id":"SP2514N"},
>           {
>             "id":"MA147LL/A"}]
>       }}}}
> {noformat}
> And the response to the second query looks as follows:
> {noformat}
> {
>   "responseHeader":{
>     "status":0,
>     "QTime":10,
>     "params":{
>       "q":"*:*",
>       "indent":"on",
>       "fl":"id",
>       "group.limit":"0",
>       "sort":"id desc",
>       "group.offset":"4",
>       "group.query":["cat:electronics",
>         "cat:connector"],
>       "rows":"5",
>       "wt":"json",
>       "group":"true"}},
>   "grouped":{
>     "cat:connector":{
>       "matches":32,
>       "doclist":{"numFound":2,"start":4,"docs":[
>           {
>             "id":"IW-02"},
>           {
>             "id":"F8V7067-APL-KIT"}]
>       }},
>     "cat:electronics":{
>       "matches":32,
>       "doclist":{"numFound":12,"start":4,"docs":[
>           {
>             "id":"VS1GB400C3"},
>           {
>             "id":"VDBDB1A16"},
>           {
>             "id":"TWINX2048-3200PRO"},
>           {
>             "id":"SP2514N"},
>           {
>             "id":"MA147LL/A"}]
>       }}}}
> {noformat}
> You can see that the second query has group.offset=4 and even the header states that the start is set to 4, but the documents are still the same as the group.offset was set to 0. 
> If this something I'm missing or we have a bug?



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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