lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Muir (JIRA)" <>
Subject [jira] [Commented] (LUCENE-5476) Facet sampling
Date Sat, 01 Mar 2014 14:02:19 GMT


Robert Muir commented on LUCENE-5476:

Also, one thing that we did in the old impl is not use Math.random() or Random at all. Rather
some crazy formula was used to create faster samples. I don't say we need to do that now,
but maybe drop a TODO. At any rate, I don't think we should use Math.random(), but rather
init a Random once and call nextDouble(). This will also allow to reuse a seed.

xor-shift might be a good choice here.

> Facet sampling
> --------------
>                 Key: LUCENE-5476
>                 URL:
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Rob Audenaerde
>         Attachments: LUCENE-5476.patch,
> 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

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message