Simple question


(Gregory Schier) #1

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


(Shay Banon) #2

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.comwrote:

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


(Gregory Schier) #3

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 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.comwrote:

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


(system) #4