# Timeout for facets

**URL:** <https://discuss.elastic.co/t/timeout-for-facets/9246>\
**Category:** Elasticsearch\
**Created:** [October 4, 2012, 10:02pm UTC](https://discuss.elastic.co/t/timeout-for-facets/9246 "2012-10-04T22:02:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mike](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@Mike](https://discuss.elastic.co/u/Mike)\
**Post date:** [October 4, 2012, 10:02pm UTC](https://discuss.elastic.co/t/timeout-for-facets/9246/1 "2012-10-04T22:02:36Z")

</div>

Is there a way to set a timeout when querying for facets? I've set  
"/\_search?size=0&timeout=10s" in the search DSL, but I do not get a  
response back from elastic within 10 seconds when I purposely send facet  
that will take a very very long time (for testing purposes). I have also  
set a timeout on curl for 20 seconds just so I don't wait forever, and I  
end up getting a response back from curl saying the query timed out while  
elastic remains unresponsive.

--

---

<div class="post-metadata">

**Author:** ![otisg](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/otisg/32/492_2.png) [@otisg](https://discuss.elastic.co/u/otisg)\
**Post date:** [October 5, 2012, 3:24am UTC](https://discuss.elastic.co/t/timeout-for-facets/9246/2 "2012-10-05T03:24:43Z")

</div>

Hi Mike,

Unfortunately, all I can do it point you to  
[https://groups.google.com/forum/?fromgroups=#!searchin/elasticsearch/otis$20timeout/elasticsearch/Lr9J-WZbtIw/6620kh45rmgJ](https://groups.google.com/forum/?fromgroups=#!searchin/elasticsearch/otis$20timeout/elasticsearch/Lr9J-WZbtIw/6620kh45rmgJ)

In tests we've done so far timeout didn't work no matter how we specified  
it.

## Otis

Search Analytics - [Cloud Monitoring Tools & Services | Sematext](http://sematext.com/search-analytics/index.html)  
Performance Monitoring - [Sematext Monitoring | Infrastructure Monitoring Service](http://sematext.com/spm/index.html)

On Thursday, October 4, 2012 6:02:36 PM UTC-4, Mike wrote:

> Is there a way to set a timeout when querying for facets? I've set  
> "/\_search?size=0&timeout=10s" in the search DSL, but I do not get a  
> response back from elastic within 10 seconds when I purposely send facet  
> that will take a very very long time (for testing purposes). I have also  
> set a timeout on curl for 20 seconds just so I don't wait forever, and I  
> end up getting a response back from curl saying the query timed out while  
> elastic remains unresponsive.

--

---

<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:** [October 5, 2012, 4:10am UTC](https://discuss.elastic.co/t/timeout-for-facets/9246/3 "2012-10-05T04:10:00Z")

</div>

Hi,

a long time ago I asked similar question (at the Java API level):  
[http://elasticsearch-users.115913.n3.nabble.com/Different-API-calls-for-the-same-timeout-functionality-td2850753.html](http://elasticsearch-users.115913.n3.nabble.com/Different-API-calls-for-the-same-timeout-functionality-td2850753.html)

May be the answer will help you a bit.

But as I said, this was more the year ago so not sure if it is still valid.

Regards,  
Lukas

On Fri, Oct 5, 2012 at 5:24 AM, Otis Gospodnetic \<[otis.gospodnetic@gmail.com](mailto:otis.gospodnetic@gmail.com)

> wrote:

> Hi Mike,
> 
> Unfortunately, all I can do it point you to  
> [Redirecting to Google Groups](https://groups.google.com/forum/?fromgroups=#!searchin/elasticsearch/otis$20timeout/elasticsearch/Lr9J-WZbtIw/6620kh45rmgJ)
> 
> In tests we've done so far timeout didn't work no matter how we specified  
> it.
> 
> ## Otis
> 
> Search Analytics - [Cloud Monitoring Tools & Services | Sematext](http://sematext.com/search-analytics/index.html)  
> Performance Monitoring - [Sematext Monitoring | Infrastructure Monitoring Service](http://sematext.com/spm/index.html)
> 
> On Thursday, October 4, 2012 6:02:36 PM UTC-4, Mike wrote:
> 
> > Is there a way to set a timeout when querying for facets? I've set  
> > "/\_search?size=0&timeout=10s" in the search DSL, but I do not get a  
> > response back from elastic within 10 seconds when I purposely send facet  
> > that will take a very very long time (for testing purposes). I have also  
> > set a timeout on curl for 20 seconds just so I don't wait forever, and I  
> > end up getting a response back from curl saying the query timed out while  
> > elastic remains unresponsive.
> 
> --

--

---

<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:10am UTC](https://discuss.elastic.co/t/timeout-for-facets/9246/4 "2017-07-06T03:10:01Z")

</div>


