Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-5027 Field Collapsing PostFilter
  3. SOLR-5554

Ordering Issue when Collapsing using min max

    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.6
    • Fix Version/s: 4.7
    • Component/s: search
    • Labels:
      None
    • Environment:

      Solr 4.6

      Description

      We faced the ordering issue without passing any sorting parameter and same filters in both queries.

      Query1
      fq=

      {!collapse field=company_id}

      Query2
      fq=

      {!collapse field=comany_id min=price}

      Query3
      For debugging Query2, we added score field in fl=score,offering_id,company_id...
      That actually solved the document order issue

      Query4
      But when we passed selective exclude in facet field of Query3, it give document in correct order but with NullPointerException in error and no facet (not the one in SOLR-5416).
      facet.field=

      {!ex="samsung"}

      brand
      fq=

      {!tag="samsung"}

      (brand:"samsung")
      The error is
      NullPointerException at org.apache.solr.search.CollapsingQParserPlugin$FloatValueCollapse.collapse(CollapsingQParserPlugin.java:852)

      Query5
      Removing score from fl in Query 4 removes the error

        Attachments

        1. Error On Query4
          3 kB
          Deepak Mishra
        2. Query1.txt
          0.3 kB
          Deepak Mishra
        3. Query2.txt
          0.3 kB
          Deepak Mishra
        4. Query3.txt
          0.3 kB
          Deepak Mishra
        5. Query4.txt
          0.3 kB
          Deepak Mishra
        6. Query5.txt
          0.3 kB
          Deepak Mishra
        7. Query6.txt
          0.2 kB
          Deepak Mishra
        8. SchemaDetails.txt
          0.6 kB
          Deepak Mishra
        9. DetailedErrorOnQuery6.txt
          20 kB
          Deepak Mishra

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              deepakmishra117 Deepak Mishra
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: