# \[Instant search\] What happens when a search request is aborted

**URL:** <https://discuss.elastic.co/t/instant-search-what-happens-when-a-search-request-is-aborted/6388>\
**Category:** Elasticsearch\
**Created:** [January 15, 2012, 6:57pm UTC](https://discuss.elastic.co/t/instant-search-what-happens-when-a-search-request-is-aborted/6388 "2012-01-15T18:57:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vineeth\_mohan](https://avatars.discourse-cdn.com/v4/letter/v/bc79bd/32.png) [@vineeth\_mohan](https://discuss.elastic.co/u/vineeth_mohan)\
**Post date:** [January 15, 2012, 6:57pm UTC](https://discuss.elastic.co/t/instant-search-what-happens-when-a-search-request-is-aborted/6388/1 "2012-01-15T18:57:41Z")

</div>

Hi ,

For searching in real time fashion from browser side , i was wondering  
which is better -  
For each keypress , a request is sent.  
If the request have not retured by next key press , either i can

- Wait till the current request is done and run the new request only  
when this is done.
- Or i can abort the current request and move to the new one.

On the second approach i was wondering what will happen at elasticSearch  
side , will the request would be still processed if the request is aborted  
by the client ?

Thanks  
Vineeth

---

<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:** [January 15, 2012, 10:30pm UTC](https://discuss.elastic.co/t/instant-search-what-happens-when-a-search-request-is-aborted/6388/2 "2012-01-15T22:30:37Z")

</div>

On elasticsearch side, there is no way to abort a search request, so yes,  
it will still be processed.

On Sun, Jan 15, 2012 at 8:57 PM, Vineeth Mohan [vineethmohan@algotree.com](mailto:vineethmohan@algotree.com)wrote:

> Hi ,
> 
> For searching in real time fashion from browser side , i was wondering  
> which is better -  
> For each keypress , a request is sent.  
> If the request have not retured by next key press , either i can
> 
> - Wait till the current request is done and run the new request only  
> when this is done.
> - Or i can abort the current request and move to the new one.
> 
> On the second approach i was wondering what will happen at elasticSearch  
> side , will the request would be still processed if the request is aborted  
> by the client ?
> 
> Thanks  
> Vineeth

---

<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:42am UTC](https://discuss.elastic.co/t/instant-search-what-happens-when-a-search-request-is-aborted/6388/3 "2017-07-06T03:42:39Z")

</div>


