# Facet Query

**URL:** <https://discuss.elastic.co/t/facet-query/7348>\
**Category:** Elasticsearch\
**Created:** [April 16, 2012, 1:44pm UTC](https://discuss.elastic.co/t/facet-query/7348 "2012-04-16T13:44:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sumit\_Guptaa](https://avatars.discourse-cdn.com/v4/letter/s/e8c25b/32.png) [@Sumit\_Guptaa](https://discuss.elastic.co/u/Sumit_Guptaa)\
**Post date:** [April 16, 2012, 1:44pm UTC](https://discuss.elastic.co/t/facet-query/7348/1 "2012-04-16T13:44:43Z")

</div>

Hi all,

Can any body give the adject reason for Why we use post in place of put in facet query?

Thanx

Regards  
Sumit Gupta

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [April 16, 2012, 1:50pm UTC](https://discuss.elastic.co/t/facet-query/7348/2 "2012-04-16T13:50:16Z")

</div>

If I understood what you wrote:  
It's a search request. Search is using POST.  
You don't add something in ES when asking for facets. So you don't PUT  
something.

You just POST a request.

My 2 cents.  
David.

Le 16 avril 2012 à 15:44, Sumit Guptaa [sumit.gupta.ngi@gmail.com](mailto:sumit.gupta.ngi@gmail.com) a écrit  
:

> Hi all,
> 
> Can any body give the adject reason for Why we use post in place of put  
> in  
> facet query?
> 
> Thanx
> 
> Regards  
> Sumit Gupta
> 
> --  
> View this message in context:  
> [http://elasticsearch-users.115913.n3.nabble.com/Facet-Query-tp3914439p3914439.html](http://elasticsearch-users.115913.n3.nabble.com/Facet-Query-tp3914439p3914439.html)  
> Sent from the Elasticsearch Users mailing list archive at [Nabble.com](http://Nabble.com).

--  
David Pilato  
[http://dev.david.pilato.fr/](http://dev.david.pilato.fr/)  
Twitter : @dadoonet

---

<div class="post-metadata">

**Author:** ![pulkitsinghal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pulkitsinghal/32/802_2.png) [@pulkitsinghal](https://discuss.elastic.co/u/pulkitsinghal)\
**Post date:** [May 28, 2012, 12:23pm UTC](https://discuss.elastic.co/t/facet-query/7348/3 "2012-05-28T12:23:03Z")

</div>

I agree with David.

You see Sumit: PUT, POST and GET are all concepts of making basic web  
requests using HTTP.  
PUT has a specific intention or purpose. That purpose being to add somthing.  
POST owes no such meaning to its usage.

Try reading a small part of the following article and it should help you  
feel more in charge of these concepts:

> **[PUT or POST: The REST of the Story](https://jcalcote.wordpress.com/2008/10/16/put-or-post-the-rest-of-the-story/)**
>
> Web service designers have tried for some time now to correlate CRUD (Create, Retrieve, Update and Delete) semantics with the Representational State Transfer (REST) verbs defined by the HTTP specif…

On Mon, Apr 16, 2012 at 8:50 AM, [david@pilato.fr](mailto:david@pilato.fr) [david@pilato.fr](mailto:david@pilato.fr) wrote:

> \*\*
> 
> If I understood what you wrote:
> 
> It's a search request. Search is using POST.
> 
> You don't add something in ES when asking for facets. So you don't PUT  
> something.
> 
> You just POST a request.
> 
> My 2 cents.
> 
> David.
> 
> Le 16 avril 2012 à 15:44, Sumit Guptaa [sumit.gupta.ngi@gmail.com](mailto:sumit.gupta.ngi@gmail.com) a  
> écrit :
> 
> > Hi all,
> > 
> > Can any body give the adject reason for Why we use post in place of put  
> > in  
> > facet query?
> > 
> > Thanx
> > 
> > Regards  
> > Sumit Gupta
> > 
> > --  
> > View this message in context:  
> > [http://elasticsearch-users.115913.n3.nabble.com/Facet-Query-tp3914439p3914439.html](http://elasticsearch-users.115913.n3.nabble.com/Facet-Query-tp3914439p3914439.html)  
> > Sent from the Elasticsearch Users mailing list archive at [Nabble.com](http://Nabble.com).
> 
> --  
> David Pilato  
> [http://dev.david.pilato.fr/](http://dev.david.pilato.fr/)  
> Twitter : @dadoonet

---

<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:26am UTC](https://discuss.elastic.co/t/facet-query/7348/4 "2017-07-06T03:26:42Z")

</div>


