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


(vineeth mohan) #1

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


(Shay Banon) #2

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

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


(system) #3