# API change in facet -- porting date histogram term facet(/bleskes/elasticfacets)

**URL:** <https://discuss.elastic.co/t/api-change-in-facet-porting-date-histogram-term-facet-bleskes-elasticfacets/14783>\
**Category:** Elasticsearch\
**Created:** [December 10, 2013, 1:29am UTC](https://discuss.elastic.co/t/api-change-in-facet-porting-date-histogram-term-facet-bleskes-elasticfacets/14783 "2013-12-10T01:29:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bill\_Lee](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bill_lee/32/1931_2.png) [@Bill\_Lee](https://discuss.elastic.co/u/Bill_Lee)\
**Post date:** [December 10, 2013, 1:29am UTC](https://discuss.elastic.co/t/api-change-in-facet-porting-date-histogram-term-facet-bleskes-elasticfacets/14783/1 "2013-12-10T01:29:02Z")

</div>

Hi, in case anyone is interested, i am  
moving [https://github.com/bleskes/elasticfacets](https://github.com/bleskes/elasticfacets) the date histogram term  
facet into 0.9 as the original author seems to have lost interest or busy.

there has been an api change since 0.20\* VS 0.90\*

THE org.elasticsearch.search.facet.FacetCollector has gone and  
FacetProcessor becomes FacetParser\>?\

FieldDataType also changed?

anyone know when these changed and if there is a change log for all of  
these?

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/0e66c837-1764-4d8b-b9ef-3d141bdd1984%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/0e66c837-1764-4d8b-b9ef-3d141bdd1984%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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:** [December 10, 2013, 4:10pm UTC](https://discuss.elastic.co/t/api-change-in-facet-porting-date-histogram-term-facet-bleskes-elasticfacets/14783/2 "2013-12-10T16:10:25Z")

</div>

Finding the change log is easy since all the source is on Github and the  
elasticsearch team is good about creating an issue for most commits.

Starting from the history of FacetParser.java, I found this commit:

> <https://github.com/elastic/elasticsearch/commit/73a447da861d2413269064899443b297b9ca3f88>
>
> the main goal of the facet refactoring is to allow for two modes of facet execut…ion, collector based, that get callbacks as hist match, and post based, which iterates over all the relevant hits
> it also includes a some simplification of the facet implementation

The best place to see how the API is used is by looking at the  
unit/integration tests:  
[https://github.com/elasticsearch/elasticsearch/tree/master/src/test/java/org/elasticsearch/search/facet](https://github.com/elasticsearch/elasticsearch/tree/master/src/test/java/org/elasticsearch/search/facet)

Cheers,

Ivan

On Mon, Dec 9, 2013 at 5:29 PM, Bill Lee [lwluibe@gmail.com](mailto:lwluibe@gmail.com) wrote:

> Hi, in case anyone is interested, i am moving  
> [GitHub - bleskes/elasticfacets: A set of facets and related tools for ElasticSearch](https://github.com/bleskes/elasticfacets) the date histogram term facet  
> into 0.9 as the original author seems to have lost interest or busy.
> 
> there has been an api change since 0.20\* VS 0.90\*
> 
> THE org.elasticsearch.search.facet.FacetCollector has gone and  
> FacetProcessor becomes FacetParser\>?\
> 
> FieldDataType also changed?
> 
> anyone know when these changed and if there is a change log for all of  
> these?
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/0e66c837-1764-4d8b-b9ef-3d141bdd1984%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/0e66c837-1764-4d8b-b9ef-3d141bdd1984%40googlegroups.com)  
> .  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQD8vo4i1nDq%2BS8TwOQ1QvF-rRJV1yTse9UQCSeJ0tz3VA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQD8vo4i1nDq%2BS8TwOQ1QvF-rRJV1yTse9UQCSeJ0tz3VA%40mail.gmail.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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:02am UTC](https://discuss.elastic.co/t/api-change-in-facet-porting-date-histogram-term-facet-bleskes-elasticfacets/14783/3 "2017-07-06T02:02:12Z")

</div>


