[
https://issues.apache.org/jira/browse/LUCENE-5476?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Rob Audenaerde updated LUCENE-5476:
-----------------------------------
Attachment: LUCENE-5476.patch
New patch.
My little benchmark results:
Exact :176 ms
Sampled:36 ms
* I removed the {{SamplingParams}}.
* I use random sampling in bins in the {{addDoc}}. This has almost no
performance impact over fix-internal samling when running with a sampleRatio of
0.001.
* Renamed the class to {{RandomSamplingFacetsCollector}}
* I decided to always add the first document of a segment. This counters the
fact that randomindex in the last bin is larger than the segment-size. Gives
slightly better results.
I do have some questions:
* Code style-wise: I see {{this.}} is sometimes used, and sometimes not. What
do you prefer?
* It seems {{FixedBitSet}} contains a lot of empty space, as only 1 in 1000
hits are preserved. I'm not that familiar with all the DocIdSet
implementations, but maybe there are more suitable subclasses?
> Facet sampling
> --------------
>
> Key: LUCENE-5476
> URL: https://issues.apache.org/jira/browse/LUCENE-5476
> Project: Lucene - Core
> Issue Type: Improvement
> Reporter: Rob Audenaerde
> Attachments: LUCENE-5476.patch, LUCENE-5476.patch, LUCENE-5476.patch,
> SamplingComparison_SamplingFacetsCollector.java, SamplingFacetsCollector.java
>
>
> With LUCENE-5339 facet sampling disappeared.
> When trying to display facet counts on large datasets (>10M documents)
> counting facets is rather expensive, as all the hits are collected and
> processed.
> Sampling greatly reduced this and thus provided a nice speedup. Could it be
> brought back?
--
This message was sent by Atlassian JIRA
(v6.2#6252)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]