[
https://issues.apache.org/jira/browse/LUCENE-5016?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Shai Erera resolved LUCENE-5016.
--------------------------------
Resolution: Fixed
Fix Version/s: 4.4
5.0
Lucene Fields: New,Patch Available (was: New)
Committed to trunk and 4x. Thanks Rob for reporting this!
> Sampling can break FacetResult labeling
> ----------------------------------------
>
> Key: LUCENE-5016
> URL: https://issues.apache.org/jira/browse/LUCENE-5016
> Project: Lucene - Core
> Issue Type: Bug
> Components: modules/facet
> Affects Versions: 4.3
> Reporter: Rob Audenaerde
> Assignee: Shai Erera
> Priority: Minor
> Fix For: 5.0, 4.4
>
> Attachments: LUCENE-5016.patch, test-labels.zip
>
>
> When sampling FacetResults, the TopKInEachNodeHandler is used to get the
> FacetResults.
> This is my case:
> A FacetResult is returned (which matches a FacetRequest) from the
> StandardFacetAccumulator. The facet has 0 results. The labelling of the
> root-node seems incorrect. I know, from the StandardFacetAccumulator, that
> the rootnode has a label, so I can use that one.
> Currently the recursivelyLabel method uses the taxonomyReader.getPath() to
> retrieve the label. I think we can skip that for the rootNode when there are
> no children (and gain a little performance on the way too?)
--
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: [email protected]
For additional commands, e-mail: [email protected]