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

Facet counts in FacetsAccumulator.facetArrays are multiplied as many times as FacetsCollector.getFacetResults is called.

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.2
    • 4.3, 6.0
    • modules/facet
    • None
    • New, Patch Available

    Description

      In lucene 4.1, only StandardFacetsAccumulator could be instantiated.
      And as of lucene 4.2, it became possible to instantiate FacetsAccumulator.

      I invoked FacetsCollector.getFacetResults twice, and I saw doubled facet counts.
      If I invoke it three times, I see facet counts multiplied three times.
      It all happens in FacetsAccumulator.accumulate.

      StandardFacetsAccumulator doesn't have this bug since it frees facetArrays whenever StandardFacetsAccumulator.accumulate is called.

      Is it a feature or a bug?

      Attachments

        1. LUCENE-4893.patch
          7 kB
          Shai Erera
        2. LUCENE-4893.patch
          10 kB
          Shai Erera
        3. LUCENE-4893.patch
          7 kB
          Shai Erera
        4. LUCENE-4893.patch
          6 kB
          Shai Erera

        Activity

          People

            shaie Shai Erera
            crocket anonymous
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: