# Removing some redundant date in facets responses

**URL:** <https://discuss.elastic.co/t/removing-some-redundant-date-in-facets-responses/3723>\
**Category:** Elasticsearch\
**Created:** [January 2, 2011, 9:59pm UTC](https://discuss.elastic.co/t/removing-some-redundant-date-in-facets-responses/3723 "2011-01-02T21:59:15Z")\
**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:** [January 2, 2011, 9:59pm UTC](https://discuss.elastic.co/t/removing-some-redundant-date-in-facets-responses/3723/1 "2011-01-02T21:59:15Z")

</div>

Hi,

Currently, facets return some redundant data in their response, for  
example, the fields the facet was executed on, and other parameters provided  
depending on the facet used (interval, for example, with histogram facet). I  
would like to remove this data, and basically, not repeat in the facets  
response data that was provided already in the facet request. This is a  
breaking change, so shout if you think it does not make sense...

cheers,  
-shay.banon

---

<div class="post-metadata">

**Author:** ![ppearcy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ppearcy/32/980_2.png) [@ppearcy](https://discuss.elastic.co/u/ppearcy)\
**Post date:** [January 3, 2011, 4:58pm UTC](https://discuss.elastic.co/t/removing-some-redundant-date-in-facets-responses/3723/2 "2011-01-03T16:58:28Z")

</div>

The one piece of info that I find useful is the facet name that comes  
back allowing me to map the response back to the request, which in the  
facet examples on this page:  
[http://www.elasticsearch.com/docs/elasticsearch/rest\_api/search/facets/](http://www.elasticsearch.com/docs/elasticsearch/rest_api/search/facets/)

Would be "wow\_facet".

Thanks!

On Jan 2, 2:59 pm, Shay Banon [shay.ba...@elasticsearch.com](mailto:shay.ba...@elasticsearch.com) wrote:

> Hi,
> 
> Currently, facets return some redundant data in their response, for  
> example, the fields the facet was executed on, and other parameters provided  
> depending on the facet used (interval, for example, with histogram facet). I  
> would like to remove this data, and basically, not repeat in the facets  
> response data that was provided already in the facet request. This is a  
> breaking change, so shout if you think it does not make sense...
> 
> cheers,  
> -shay.banon

---

<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:** [January 3, 2011, 6:38pm UTC](https://discuss.elastic.co/t/removing-some-redundant-date-in-facets-responses/3723/3 "2011-01-03T18:38:32Z")

</div>

Yea, that one will definitely stay to allow you to match on it. The question  
was the the rest (\_field, \_key\_field). Basically, all the values passed for  
the facet request except for the facet name and type (which will still be  
returned).

On Mon, Jan 3, 2011 at 6:58 PM, Paul [ppearcy@gmail.com](mailto:ppearcy@gmail.com) wrote:

> The one piece of info that I find useful is the facet name that comes  
> back allowing me to map the response back to the request, which in the  
> facet examples on this page:  
> [http://www.elasticsearch.com/docs/elasticsearch/rest\_api/search/facets/](http://www.elasticsearch.com/docs/elasticsearch/rest_api/search/facets/)
> 
> Would be "wow\_facet".
> 
> Thanks!
> 
> On Jan 2, 2:59 pm, Shay Banon [shay.ba...@elasticsearch.com](mailto:shay.ba...@elasticsearch.com) wrote:
> 
> > Hi,
> > 
> > Currently, facets return some redundant data in their response, for  
> > example, the fields the facet was executed on, and other parameters  
> > provided  
> > depending on the facet used (interval, for example, with histogram  
> > facet). I  
> > would like to remove this data, and basically, not repeat in the facets  
> > response data that was provided already in the facet request. This is a  
> > breaking change, so shout if you think it does not make sense...
> > 
> > cheers,  
> > -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:14am UTC](https://discuss.elastic.co/t/removing-some-redundant-date-in-facets-responses/3723/4 "2017-07-06T04:14:26Z")

</div>

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


