# Remove terms API

**URL:** <https://discuss.elastic.co/t/remove-terms-api/3042>\
**Category:** Elasticsearch\
**Created:** [June 25, 2010, 7:44pm UTC](https://discuss.elastic.co/t/remove-terms-api/3042 "2010-06-25T19:44:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [June 25, 2010, 7:44pm UTC](https://discuss.elastic.co/t/remove-terms-api/3042/1 "2010-06-25T19:44:38Z")

</div>

Hi,

I am considering removing the terms API from elasticsearch. This is for  
the simple reason that with the new facets provided, the terms API is  
actually a subset of a search request (with a query to match all documents  
and a size of 0), with facets providing much more functionality. Any  
additional functionality can be provided in the facets area, and I prefer  
not to maintain an API that in any case the search API is probably a better  
fit for. What do you think?

Also, there is an issue to provide facets for count API as well. This is  
another case of a subset of the search API with size set to 0, with the  
search API providing much more options.

If there are no objections, I will remove it in a week or so before  
releasing version 0.9.

-shay.banon

---

<div class="post-metadata">

**Author:** ![tfreitas](https://avatars.discourse-cdn.com/v4/letter/t/bbe5ce/32.png) [@tfreitas](https://discuss.elastic.co/u/tfreitas)\
**Post date:** [June 26, 2010, 1:09am UTC](https://discuss.elastic.co/t/remove-terms-api/3042/2 "2010-06-26T01:09:30Z")

</div>

+1  
good for me

On Jun 25, 3:44 pm, Shay Banon [shay.ba...@elasticsearch.com](mailto:shay.ba...@elasticsearch.com) wrote:

> Hi,
> 
> I am considering removing the terms API from elasticsearch. This is for  
> the simple reason that with the new facets provided, the terms API is  
> actually a subset of a search request (with a query to match all documents  
> and a size of 0), with facets providing much more functionality. Any  
> additional functionality can be provided in the facets area, and I prefer  
> not to maintain an API that in any case the search API is probably a better  
> fit for. What do you think?
> 
> Also, there is an issue to provide facets for count API as well. This is  
> another case of a subset of the search API with size set to 0, with the  
> search API providing much more options.
> 
> If there are no objections, I will remove it in a week or so before  
> releasing version 0.9.
> 
> -shay.banon

---

<div class="post-metadata">

**Author:** ![Lukas\_Vlcek1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lukas_vlcek1/32/819_2.png) [@Lukas\_Vlcek1](https://discuss.elastic.co/u/Lukas_Vlcek1)\
**Post date:** [June 26, 2010, 5:35am UTC](https://discuss.elastic.co/t/remove-terms-api/3042/3 "2010-06-26T05:35:54Z")

</div>

+1  
Lukas

On Fri, Jun 25, 2010 at 9:44 PM, Shay Banon [shay.banon@elasticsearch.com](mailto:shay.banon@elasticsearch.com)wrote:

> Hi,
> 
> I am considering removing the terms API from elasticsearch. This is for  
> the simple reason that with the new facets provided, the terms API is  
> actually a subset of a search request (with a query to match all documents  
> and a size of 0), with facets providing much more functionality. Any  
> additional functionality can be provided in the facets area, and I prefer  
> not to maintain an API that in any case the search API is probably a better  
> fit for. What do you think?
> 
> Also, there is an issue to provide facets for count API as well. This is  
> another case of a subset of the search API with size set to 0, with the  
> search API providing much more options.
> 
> If there are no objections, I will remove it in a week or so before  
> releasing version 0.9.
> 
> -shay.banon

---

<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, 4:22am UTC](https://discuss.elastic.co/t/remove-terms-api/3042/4 "2017-07-06T04:22:59Z")

</div>

Closed on July 6, 2017, 4:22am UTC


