How to use search_after with rest low client api

How to use search_after in below implementation:

String esQuery = String.format(searchTextQuery, startDate, endDate, formattedQueries);
		request.setJsonEntity(esQuery);
		String offset = String.valueOf((Integer.parseInt(from)*Integer.parseInt(size)));
		request.addParameter("size",size);
		request.addParameter("from",offset);
		Response response = elasticSearchService.getClient().getLowLevelClient().performRequest(request);
		String responseBody = IOUtils.toString(response.getEntity().getContent(), "UTF-8");

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.