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

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.6
    • 4.7
    • search
    • None
    • 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. DetailedErrorOnQuery6.txt
          20 kB
          Deepak Mishra
        2. SchemaDetails.txt
          0.6 kB
          Deepak Mishra
        3. Query6.txt
          0.2 kB
          Deepak Mishra
        4. Query5.txt
          0.3 kB
          Deepak Mishra
        5. Query4.txt
          0.3 kB
          Deepak Mishra
        6. Query3.txt
          0.3 kB
          Deepak Mishra
        7. Query2.txt
          0.3 kB
          Deepak Mishra
        8. Query1.txt
          0.3 kB
          Deepak Mishra
        9. Error On Query4
          3 kB
          Deepak Mishra

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: