brewster / elastictastic

Object-document mapper and lightweight API adapter for ElasticSearch
MIT License
88 stars 13 forks source link

Send explicit close scroll request if error occurs in client #16

Open outoftime opened 12 years ago

outoftime commented 12 years ago

If we terminate scrolling early (presumably because of an error in the client), we need to send a close-scroll request to ES so it doesn't hold the scroll open (which consumes resources). This takes the form:

POST /_search/scroll <scroll_id>

Note no scroll param.