Elastic Search : Consecutive Page navigation using spring-data-elasticsearch results empty after certain limit
<ol>
<li><p>Using the rest-clients /_search?size=100&amp;from=500, able to fetch the results </p>

<p>Same doesnt work with below step using the code</p></li>
<li><p>Using the <strong>spring-data-elasticsearch with following below code snippets 
On using the size=100, from=500, results are empty</strong> </p>

<p>Note : It fetched results successfully only one time, i.e after the index-creation</p>

<pre><code>NativeSearchQueryBuilder nativeSearchQueryBuilder = new NativeSearchQueryBuilder();

nativeSearchQueryBuilder.withIndices("indexName");
nativeSearchQueryBuilder.withTypes("someType");
nativeSearchQueryBuilder.withPageable(new PageRequest(500, 100));
SearchQuery searchQuery = nativeSearchQueryBuilder.build();
elasticsearchTemplate.queryForList(searchQuery,
            className);
</code></pre>

<p>Do we need to add any extra step to the above snippets to get the desired results ?</p></li>
</ol>