You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Michael McCandless (JIRA)" <ji...@apache.org> on 2013/11/04 00:55:17 UTC
[jira] [Updated] (LUCENE-5326) Add enum facet method to Lucene
facet module
[ https://issues.apache.org/jira/browse/LUCENE-5326?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael McCandless updated LUCENE-5326:
---------------------------------------
Attachment: LUCENE-5326.patch
Initial rough patch, tons of nocommits, but testBasic and testRandom
seem to pass. This differs somewhat from Solr's approach:
* It's NRT-friendly (bitsets are recorded per segment, not per top-level reader).
* It handles hierarchical facets as long as they are single-valued
(it acts like the NO_PARENTS ord policy).
* Cutover to the facet module APIs: you use FacetFields to index,
pass List<FacetRequest>, get back List<FacetResult>, etc.
* All dims are indexed as a single field ($enumfacets currently), so
it's fine to have many, many dims.
* It's not a cache: instead, it loads bitsets for all dims in the
segment the first time it sees that segment.
Also, I modified RamUsageEstimator so you can optionally pass an
ObjectFilter to limit what sizeOf visits.
> 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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org