You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Rafał Kuć (JIRA)" <ji...@apache.org> on 2015/11/19 10:34:10 UTC
[jira] [Created] (SOLR-8314) Group offset not working in SolrCloud
with more than one shard
Rafał Kuć created SOLR-8314:
-------------------------------
Summary: 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ć
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
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org