mirror of
https://github.com/Alfresco/SearchServices.git
synced 2025-09-17 14:21:20 +00:00
[ SEARCH-2175 ] Pass MaxResults to Repo API as Int
This commit is contained in:
@@ -803,7 +803,7 @@ public class SOLRAPIClient
|
|||||||
|
|
||||||
if (params.getMaxResults().isPresent())
|
if (params.getMaxResults().isPresent())
|
||||||
{
|
{
|
||||||
body.put("maxResults", params.getMaxResults());
|
body.put("maxResults", params.getMaxResults().getAsInt());
|
||||||
}
|
}
|
||||||
|
|
||||||
PostRequest req = new PostRequest(url.toString(), body.toString(), "application/json");
|
PostRequest req = new PostRequest(url.toString(), body.toString(), "application/json");
|
||||||
|
Reference in New Issue
Block a user