Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-4461

Multiple FacetRequest with the same path creates inconsistent results

Details

    • New, Patch Available

    Description

      Multiple FacetRequest are getting merged into one creating wrong results in this case:

      FacetSearchParams facetSearchParams = new FacetSearchParams();
      facetSearchParams.addFacetRequest(new CountFacetRequest(new CategoryPath("author"), 10));
      facetSearchParams.addFacetRequest(new CountFacetRequest(new CategoryPath("author"), 10));

      Problem can be fixed by defining hashcode and equals in certain way that Lucene recognize we are talking about different requests.

      Attached test case.

      Attachments

        1. LUCENE-4461.patch
          5 kB
          Gilad Barkai
        2. LuceneFacetTest.java
          3 kB
          Rodrigo Vega

        Activity

          People

            shaie Shai Erera
            rvega Rodrigo Vega
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: