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");