You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Liu Zheng (JIRA)" <ji...@apache.org> on 2019/02/06 17:49:00 UTC

[jira] [Created] (SOLR-13228) Solr collapse result repeat in 6.6.5 cloud example techproducts.

Liu Zheng created SOLR-13228:
--------------------------------

             Summary: Solr collapse result repeat in 6.6.5 cloud example techproducts.
                 Key: SOLR-13228
                 URL: https://issues.apache.org/jira/browse/SOLR-13228
             Project: Solr
          Issue Type: Bug
      Security Level: Public (Default Security Level. Issues are Public)
          Components: query parsers
    Affects Versions: 6.6.5
         Environment: op: fedora 27
solr version: 6.6.5
collection: example cloud - techproducts
            Reporter: Liu Zheng


i try request this to techproducts collection

{code}
select?fl=id,genre_s&fq={!collapse%20field=genre_s}&indent=on&q=genre_s:*&wt=json
{code}

and i get response

{code:json}
{
  "responseHeader":{
    "zkConnected":true,
    "status":0,
    "QTime":6,
    "params":{
      "q":"genre_s:*",
      "indent":"on",
      "fl":"id,genre_s",
      "fq":"{!collapse field=genre_s}",
      "wt":"json"}},
  "response":{"numFound":3,"start":0,"maxScore":1.0,"docs":[
      {
        "id":"0812521390",
        "genre_s":"fantasy"},
      {
        "id":"0553573403",
        "genre_s":"fantasy"},
      {
        "id":"0553293354",
        "genre_s":"scifi"}]
  }}
{code}

when i request in grouping

{code}
select?fl=id,genre_s&group.field=genre_s&group.limit=1&group=true&indent=on&q=genre_s:*&wt=json
{code}

i get the response

{code:json}
{
  "responseHeader":{
    "zkConnected":true,
    "status":0,
    "QTime":9,
    "params":{
      "q":"genre_s:*",
      "indent":"on",
      "fl":"id,genre_s",
      "group.limit":"1",
      "wt":"json",
      "group.field":"genre_s",
      "group":"true"}},
  "grouped":{
    "genre_s":{
      "matches":10,
      "groups":[{
          "groupValue":"fantasy",
          "doclist":{"numFound":8,"start":0,"maxScore":1.0,"docs":[
              {
                "id":"0553573403",
                "genre_s":"fantasy"}]
          }},
        {
          "groupValue":"scifi",
          "doclist":{"numFound":2,"start":0,"docs":[
              {
                "id":"0553293354",
                "genre_s":"scifi"}]
          }}]}}}
{code}



--
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