Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-13228

Solr collapse result repeat in 6.6.5 cloud example techproducts.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Incomplete
    • Affects Version/s: 6.6.5
    • Fix Version/s: None
    • Component/s: query parsers
    • Labels:
      None
    • Environment:

      op: fedora 27
      solr version: 6.6.5
      collection: example cloud - techproducts

      Description

      i try request this to techproducts collection

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

      and i get response

      {
        "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"}]
        }}
      

      when i request in grouping

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

      i get the response

      {
        "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"}]
                }}]}}}
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              deathknight0718 Liu Zheng
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: