elastic.py 文件源码

python
阅读 27 收藏 0 点赞 0 评论 0

项目:python3-utils 作者: soldni 项目源码 文件源码
def get_scroll(query_dsl, es_client, index_name=None, keep_alive='1m'):
    """Returns an iterator for results matching query_dsl."""

    if index_name is None:
        index_name = es_client.index_name

    scroll = scan(
        es_client, query=query_dsl, scroll=keep_alive, index=index_name)

    return scroll
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号