Open
Description
Looks like to get a batch of say 1000 documents, one needs to go through _post
directly, as there is no way to stop query()
or documents()
, once they start pulling results:
amcat = AmcatClient("http://localhost/amcat")
body = dict(queries="test",
fields=["_id", "text"],
page=0,
per_page=10)
res = amcat._post("query", index="state_of_the_union", json=body, ignore_status=[404]).json()
len(res['results'])
Metadata
Metadata
Assignees
Labels
No labels