# How to kill the thread of searching request? Is there some API to do this?

**URL:** <https://discuss.elastic.co/t/how-to-kill-the-thread-of-searching-request-is-there-some-api-to-do-this/10834>\
**Category:** Elasticsearch\
**Created:** [February 21, 2013, 4:56am UTC](https://discuss.elastic.co/t/how-to-kill-the-thread-of-searching-request-is-there-some-api-to-do-this/10834 "2013-02-21T04:56:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hoony](https://avatars.discourse-cdn.com/v4/letter/h/7ab992/32.png) [@Hoony](https://discuss.elastic.co/u/Hoony)\
**Post date:** [February 21, 2013, 4:56am UTC](https://discuss.elastic.co/t/how-to-kill-the-thread-of-searching-request-is-there-some-api-to-do-this/10834/1 "2013-02-21T04:56:55Z")

</div>

I made a elasticsearch cluster with big data, and the client can send  
searching request to it.  
Sometimes, the cluster costs much time to deal with one request.  
My question is, is there any API to kill the specified thread which cost  
too much time?

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Ivan](https://avatars.discourse-cdn.com/v4/letter/i/df788c/32.png) [@Ivan](https://discuss.elastic.co/u/Ivan)\
**Post date:** [February 21, 2013, 5:41pm UTC](https://discuss.elastic.co/t/how-to-kill-the-thread-of-searching-request-is-there-some-api-to-do-this/10834/2 "2013-02-21T17:41:20Z")

</div>

You cannot stop an existing request. However, you can set a timeout on a  
query to prevent long running requests.

--  
Ivan

On Wed, Feb 20, 2013 at 8:56 PM, 원정훈 [monkeyboywon@gmail.com](mailto:monkeyboywon@gmail.com) wrote:

> I made a elasticsearch cluster with big data, and the client can send  
> searching request to it.  
> Sometimes, the cluster costs much time to deal with one request.  
> My question is, is there any API to kill the specified thread which cost  
> too much time?
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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, 2:50am UTC](https://discuss.elastic.co/t/how-to-kill-the-thread-of-searching-request-is-there-some-api-to-do-this/10834/3 "2017-07-06T02:50:14Z")

</div>


