You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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'])
The text was updated successfully, but these errors were encountered:
Looks like to get a batch of say 1000 documents, one needs to go through
_post
directly, as there is no way to stopquery()
ordocuments()
, once they start pulling results:The text was updated successfully, but these errors were encountered: