# Simple question

**URL:** <https://discuss.elastic.co/t/simple-question/7218>\
**Category:** Elasticsearch\
**Created:** [April 4, 2012, 3:05am UTC](https://discuss.elastic.co/t/simple-question/7218 "2012-04-04T03:05:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gregory\_Schier](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gregory_schier/32/1259_2.png) [@Gregory\_Schier](https://discuss.elastic.co/u/Gregory_Schier)\
**Post date:** [April 4, 2012, 3:05am UTC](https://discuss.elastic.co/t/simple-question/7218/1 "2012-04-04T03:05:10Z")

</div>

I was just wondering why Elasticsearch facets are queried with a POST,  
as opposed to a GET, request. Does Elastic search store facets on the  
system to be used again later, or are they more of a one time thing  
like search queries?

Thanks

~Gregory

---

<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:** [April 4, 2012, 3:47pm UTC](https://discuss.elastic.co/t/simple-question/7218/2 "2012-04-04T15:47:26Z")

</div>

facets are just part of a search request, and the search request can be  
executed either using a GET, or using a POST. The reason why it also  
supports POST is because some HTTP client libs have problems sending GET  
requests with a body.

On Wed, Apr 4, 2012 at 6:05 AM, Gregory Schier [gschier1990@gmail.com](mailto:gschier1990@gmail.com)wrote:

> I was just wondering why Elasticsearch facets are queried with a POST,  
> as opposed to a GET, request. Does Elastic search store facets on the  
> system to be used again later, or are they more of a one time thing  
> like search queries?
> 
> Thanks
> 
> ~Gregory

---

<div class="post-metadata">

**Author:** ![Gregory\_Schier](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gregory_schier/32/1259_2.png) [@Gregory\_Schier](https://discuss.elastic.co/u/Gregory_Schier)\
**Post date:** [April 6, 2012, 3:42am UTC](https://discuss.elastic.co/t/simple-question/7218/3 "2012-04-06T03:42:55Z")

</div>

Oh right I forgot about the troubles sending get requests with a body.  
It makes sense now.

Thanks!

On Apr 4, 8:47 am, Shay Banon [kim...@gmail.com](mailto:kim...@gmail.com) wrote:

> facets are just part of a search request, and the search request can be  
> executed either using a GET, or using a POST. The reason why it also  
> supports POST is because some HTTP client libs have problems sending GET  
> requests with a body.
> 
> On Wed, Apr 4, 2012 at 6:05 AM, Gregory Schier [gschier1...@gmail.com](mailto:gschier1...@gmail.com)wrote:
> 
> > I was just wondering why Elasticsearch facets are queried with a POST,  
> > as opposed to a GET, request. Does Elastic search store facets on the  
> > system to be used again later, or are they more of a one time thing  
> > like search queries?
> 
> > Thanks
> 
> > ~Gregory

---

<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, 3:33am UTC](https://discuss.elastic.co/t/simple-question/7218/4 "2017-07-06T03:33:26Z")

</div>


