[ 
https://issues.apache.org/jira/browse/LUCENE-5326?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13812746#comment-13812746
 ] 

Michael McCandless commented on LUCENE-5326:
--------------------------------------------

bq. Why does the app need to explicitly add the facets as "enum"? I mean, if 
you use FacetFields, it already adds the drilldown terms (effectively as 
StringField), and I thought the 'enum' method (like EnumFacetsAccumulator) will 
use the drilldown terms instead of the category list?

But why index into the CLI if you know you want to use the enum method?

bq. I also think that it's wrong that the facets aren't added to the taxonomy. 
E.g. if you start w/ a dimension that's small and you choose to optimize 
faceted search with 'enum', but then the dimension grows, so much that enum 
stops performing or costs too much RAM, what will you do - reindex the content?

Hmm, it seems strange to pollute the taxo index w/ labels you won't use.  I 
agree it would be nice to have the flexibility to switch to the "normal" facet 
method at search time, but the app can also re-index for that?  It seems 
strange to carry so much "dead weight" just for that freedom?

bq. I haven't done a deep review of the patch yet, but in 
EnumFacetsAccumulator's jdocs you write "you should index normally e.g. 
StringField..." – that's wrong? 

Sorry, that's a relic; I'll remove it.

> Add enum facet method to Lucene facet module
> --------------------------------------------
>
>                 Key: LUCENE-5326
>                 URL: https://issues.apache.org/jira/browse/LUCENE-5326
>             Project: Lucene - Core
>          Issue Type: Improvement
>          Components: modules/facet
>            Reporter: Michael McCandless
>            Assignee: Michael McCandless
>             Fix For: 4.6, 5.0
>
>         Attachments: LUCENE-5326.patch
>
>
> I've been testing Solr facet performance, and the enum method works
> very well for low cardinality (not many unique values) fields.  So I
> think we should fold a similar option into Lucene's facet module.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to