uklft
(F. T.)
February 3, 2020, 3:08pm
1
Hey there,
When i try to list documents with a page size of 1000 , the server always returns only 100 documents.
Tested with curl and python client:
curl -s -X GET 'http://server/api/as/v1/engines/gap/documents/list' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer private-XXX' \
-d "{\"page\": {\"current\": 1,\"size\": 1000}}"
or
data = self.client.list_documents(self.engine, current=page, size=1000)
Am i doing something wrong or may this be a bug?
Kind regards,
Fabian
1 Like
JasonStoltz
(Jason Stoltzfus)
February 3, 2020, 4:13pm
2
There is a limit of 100 for page size in App Searh.
uklft
(F. T.)
February 4, 2020, 8:47am
3
Okay, good to know.
I read it like there would be 100 pages of 1000 documents each:
What is the "Results per Page" row then referring to?
Maybe you could clarify that in the docs.
JasonStoltz
(Jason Stoltzfus)
February 4, 2020, 12:45pm
4
Ah interesting. Yes, that documentation looks misleading. We'll update that, thanks for pointing that out.
JasonStoltz
(Jason Stoltzfus)
February 4, 2020, 12:56pm
5
Ah, I see now. Just to clarify, the limit is 1000 for our search endpoint. For every other API endpoint, the limit is 100.
uklft
(F. T.)
February 14, 2020, 9:13am
6
Oh, thanks for the clarification.
system
(system)
Closed
March 13, 2020, 9:13am
7
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.