tornado_elasticsearch.py
def scroll(self, scroll_id, scroll, params=None):
        """
        Scroll a search request created by specifying the scroll parameter.
        `<http://www.elasticsearch.org/guide/reference/api/search/scroll/>`_

        :arg scroll_id: The scroll ID
        :arg scroll: Specify how long a consistent view of the index should be
            maintained for scrolled search
        """
        body = {
            "scroll": scroll,
            "scroll_id": scroll_id
        }

        if params:
            if "scroll" in params.keys():
                params.pop("scroll")
            if "scroll_id" in params.keys():
                params.pop("scroll_id")

        _, data = yield self.transport.perform_request('POST',
                                                       _make_path('_search',
                                                                  'scroll'),
                                                       body=body,
                                                       params=params)
        raise gen.Return(data)
def scroll(self, scroll_id, scroll, params=None):
        """
        Scroll a search request created by specifying the scroll parameter.
        `<http://www.elasticsearch.org/guide/reference/api/search/scroll/>`_

        :arg scroll_id: The scroll ID
        :arg scroll: Specify how long a consistent view of the index should be
            maintained for scrolled search
        """
        body = {
            "scroll": scroll,
            "scroll_id": scroll_id
        }

        if params:
            if "scroll" in params.keys():
                params.pop("scroll")
            if "scroll_id" in params.keys():
                params.pop("scroll_id")

        _, data = yield self.transport.perform_request('POST',
                                                       _make_path('_search',
                                                                  'scroll'),
                                                       body=body,
                                                       params=params)
        raise gen.Return(data)
Scroll a search request created by specifying the scroll parameter.
        `<http://www.elasticsearch.org/guide/reference/api/search/scroll/>`_

        :arg scroll_id: The scroll ID
        :arg scroll: Specify how long a consistent view of the index should be
            maintained for scrolled search