python - Elasticsearch unlimited size -
I am listening to a traffic and these traffic statistics are constantly inserted for elasticsearch and I with my dragon script I want to find these data.
Here is a small part of my Pyro code,
test = es.search (index = "argus_data", body = dict (query = search_bags ["query"] , Size = "1000") # I want to do this "unlimited") print (test) I do not know what my size is because I have constantly new data How to manage Please help me solve this problem, thanks.
You can do this:
test = es.search (Index = {'test'], doc_type = ['test'], size = 1000, to_ = 0) then to _ slowly Do not get all the data till you get it. from_a ??? Start offset (default: 0)
Comments
Post a Comment