Skip to content

Latest commit

 

History

History
36 lines (26 loc) · 535 Bytes

README.md

File metadata and controls

36 lines (26 loc) · 535 Bytes

Elastic Scroll

A minimal library for efficient elasticsearch queries

Install

git clone https://github.com/departmentofdefense/elasticscroll
cd elasticscroll
pip3 install .

Upgrade

cd elasticscroll
git pull origin master
pip3 install --upgrade .

Usage

import elasticscroll

esm = elasticscroll.ElasticMinimal('https://your-es-endpoint')

lookup = {
    'query': {
        'term': {'id_resp_h': '192.83.203.129'}
    }
}

for res in esm.scroll_query('conn', lookup):
    print(res)