[ https://issues.apache.org/jira/browse/LUCENE-4893?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Shai Erera resolved LUCENE-4893. -------------------------------- Resolution: Fixed Fix Version/s: 4.3 5.0 Assignee: Shai Erera Lucene Fields: New,Patch Available (was: New) Committed to trunk and 4x. I added defensive code to prevent an app tripping itself, if it called getFacetResults before doing search, without calling reset. setNextReader now clears the cached results. Thanks crocket for reporting this! > Facet counts in FacetsAccumulator.facetArrays are multiplied as many times as > FacetsCollector.getFacetResults is called. > ------------------------------------------------------------------------------------------------------------------------ > > Key: LUCENE-4893 > URL: https://issues.apache.org/jira/browse/LUCENE-4893 > Project: Lucene - Core > Issue Type: Bug > Components: modules/facet > Affects Versions: 4.2 > Reporter: crocket > Assignee: Shai Erera > Fix For: 5.0, 4.3 > > Attachments: LUCENE-4893.patch, LUCENE-4893.patch, LUCENE-4893.patch, > LUCENE-4893.patch > > > 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? -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org