#NEWLINE# @ query_params ( 'scroll' ) #NEWLINE# def scroll( self , scroll_id = None , body = None , params = None ) : #NEWLINE# #INDENT# '\n        Scroll a search request created by specifying the scroll parameter.\n        `<http://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-scroll.html>`_\n\n        :arg scroll_id: The scroll ID\n        :arg body: The scroll ID if not passed by URL or query parameter.\n        :arg scroll: Specify how long a consistent view of the index should be\n            maintained for scrolled search\n        ' #NEWLINE# if ( ( scroll_id in SKIP_IN_PATH ) and ( body in SKIP_IN_PATH ) ) : #NEWLINE# #INDENT# raise ValueError ( 'You need to supply scroll_id or body.' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( scroll_id and ( not body ) ) : #NEWLINE# #INDENT# body = scroll_id #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if scroll_id : #NEWLINE# #INDENT# params [ 'scroll_id' ] = scroll_id #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# return self . transport . perform_request ( 'GET' , '/_search/scroll' , params = params , body = body )