lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shai Erera (JIRA)" <j...@apache.org>
Subject [jira] [Created] (LUCENE-4767) Add FacetRequest.ResultMode.AUTO_EXPAND
Date Sun, 10 Feb 2013 12:39:12 GMT
Shai Erera created LUCENE-4767:
----------------------------------

             Summary: Add FacetRequest.ResultMode.AUTO_EXPAND
                 Key: LUCENE-4767
                 URL: https://issues.apache.org/jira/browse/LUCENE-4767
             Project: Lucene - Core
          Issue Type: New Feature
          Components: modules/facet
            Reporter: Shai Erera


A ResultMode.AUTO_EXPAND will auto-expand a node in tree if only one result came up. For example,
if you have a Date facet, and you ask to count the top-K of Date/, then if your documents
were all created in say 2010, you'll get a redundant facet back: Date/2010 (no other children
of Date/).

Rather, since we already have all the categories counted at hand, we can "auto-expand" Date/2010
recursively, until we get to a level in the tree which has more than one children. And of
course, if all the results belong to a single leaf node, then we should return it ...

This can be implemented by adding a new ResultMode and a special FacetResultsHandler, which
performs the auto-expansion. I think it should be limited to depth=1 only at the moment ...

--
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-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message