# Sampling facets

**URL:** <https://discuss.elastic.co/t/sampling-facets/10296>\
**Category:** Elasticsearch\
**Created:** [January 10, 2013, 3:07pm UTC](https://discuss.elastic.co/t/sampling-facets/10296 "2013-01-10T15:07:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Itamar\_Syn\_Hershko](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/itamar_syn_hershko/32/725_2.png) [@Itamar\_Syn\_Hershko](https://discuss.elastic.co/u/Itamar_Syn_Hershko)\
**Post date:** [January 10, 2013, 3:07pm UTC](https://discuss.elastic.co/t/sampling-facets/10296/1 "2013-01-10T15:07:26Z")

</div>

Hi,

Is Sampling facets[http://lucene.apache.org/core/4\_0\_0/facet/org/apache/lucene/facet/search/sampling/SamplingAccumulator.html](http://lucene.apache.org/core/4_0_0/facet/org/apache/lucene/facet/search/sampling/SamplingAccumulator.html)supported  
with ES?

I don't see this documented anywhere, and not sure whether ES faceting is  
based on Lucene's impl or is implemented differently, so though I would ask.

If sampling isn't supported, is it something you'd consider adding?

Thanks,

Itamar.

--

---

<div class="post-metadata">

**Author:** ![otisg](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/otisg/32/492_2.png) [@otisg](https://discuss.elastic.co/u/otisg)\
**Post date:** [January 10, 2013, 11:38pm UTC](https://discuss.elastic.co/t/sampling-facets/10296/2 "2013-01-10T23:38:33Z")

</div>

Hi Itamar,

ES has its own  
impl: [http://search-lucene.com/?q=Facet&fc\_project=ElasticSearch&fc\_type=javadoc&fc\_type=source+code](http://search-lucene.com/?q=Facet&fc_project=ElasticSearch&fc_type=javadoc&fc_type=source+code)  
Solr has its own impl.  
Lucene has its own impl.  
I have my own... just kidding....  
BUT: [http://search-lucene.com/m/Xqt9l2C5C8x1/&subj=Solr+faceting+vs+Lucene+faceting](http://search-lucene.com/m/Xqt9l2C5C8x1/&subj=Solr+faceting+vs+Lucene+faceting)

## Otis

ELASTICSEARCH Performance Monitoring - [Sematext Monitoring | Infrastructure Monitoring Service](http://sematext.com/spm/index.html)

On Thursday, January 10, 2013 10:07:26 AM UTC-5, Itamar Syn-Hershko wrote:

> Hi,
> 
> Is Sampling facets[http://lucene.apache.org/core/4\_0\_0/facet/org/apache/lucene/facet/search/sampling/SamplingAccumulator.html](http://lucene.apache.org/core/4_0_0/facet/org/apache/lucene/facet/search/sampling/SamplingAccumulator.html)supported with ES?
> 
> I don't see this documented anywhere, and not sure whether ES faceting is  
> based on Lucene's impl or is implemented differently, so though I would ask.
> 
> If sampling isn't supported, is it something you'd consider adding?
> 
> Thanks,
> 
> Itamar.

--

---

<div class="post-metadata">

**Author:** ![Ivan](https://avatars.discourse-cdn.com/v4/letter/i/df788c/32.png) [@Ivan](https://discuss.elastic.co/u/Ivan)\
**Post date:** [January 10, 2013, 11:50pm UTC](https://discuss.elastic.co/t/sampling-facets/10296/3 "2013-01-10T23:50:31Z")

</div>

Not quite the same, but something to look into it if you wanted to  
implement your own. Someone contributed a facet plugin that does  
approximations when the amount of terms is high.

[https://groups.google.com/forum/#!msg/elasticsearch/wdewZZINu2k/-6nXfZM9H-cJ](https://groups.google.com/forum/#!msg/elasticsearch/wdewZZINu2k/-6nXfZM9H-cJ)

> **[GitHub - pearson-enabling-technologies/elasticsearch-approx-plugin: Plugin...](https://github.com/pearson-enabling-technologies/elasticsearch-approx-plugin)**
>
> Plugin for ElasticSearch to do approximate or exact distinct counts, and fast term lists - GitHub - pearson-enabling-technologies/elasticsearch-approx-plugin: Plugin for ElasticSearch to do approxi...

--  
Ivan

On Thu, Jan 10, 2013 at 3:38 PM, Otis Gospodnetic \<  
[otis.gospodnetic@gmail.com](mailto:otis.gospodnetic@gmail.com)\> wrote:

> Hi Itamar,
> 
> ES has its own impl:  
> [http://search-lucene.com/?q=Facet&fc\_project=ElasticSearch&fc\_type=javadoc&fc\_type=source+code](http://search-lucene.com/?q=Facet&fc_project=ElasticSearch&fc_type=javadoc&fc_type=source+code)  
> Solr has its own impl.  
> Lucene has its own impl.  
> I have my own... just kidding.... BUT:  
> [http://search-lucene.com/m/Xqt9l2C5C8x1/&subj=Solr+faceting+vs+Lucene+faceting](http://search-lucene.com/m/Xqt9l2C5C8x1/&subj=Solr+faceting+vs+Lucene+faceting)
> 
> ## Otis
> 
> ELASTICSEARCH Performance Monitoring - [Sematext Monitoring | Infrastructure Monitoring Service](http://sematext.com/spm/index.html)
> 
> On Thursday, January 10, 2013 10:07:26 AM UTC-5, Itamar Syn-Hershko wrote:
> 
> > Hi,
> > 
> > Is Sampling facets[http://lucene.apache.org/core/4\_0\_0/facet/org/apache/lucene/facet/search/sampling/SamplingAccumulator.html](http://lucene.apache.org/core/4_0_0/facet/org/apache/lucene/facet/search/sampling/SamplingAccumulator.html)supported with ES?
> > 
> > I don't see this documented anywhere, and not sure whether ES faceting is  
> > based on Lucene's impl or is implemented differently, so though I would ask.
> > 
> > If sampling isn't supported, is it something you'd consider adding?
> > 
> > Thanks,
> > 
> > Itamar.
> 
> --

--

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 2:56am UTC](https://discuss.elastic.co/t/sampling-facets/10296/4 "2017-07-06T02:56:57Z")

</div>


