Hi Guys,
SearchResponse response = srb.execute().actionGet();
I have 100 documents in my response object,but
I want to get the response from 20 th document to 40 th document from this reponse object .
Thanks for your help in advance.
Hi Guys,
SearchResponse response = srb.execute().actionGet();
I have 100 documents in my response object,but
I want to get the response from 20 th document to 40 th document from this reponse object .
Thanks for your help in advance.
Something like response.getHits().getHits()[20]
?
Thanks for Your comment ,
Actually, i am sending around 67656 documents to UI from backend ,hence the performance become slow.Therefore I am trying to send the 20 documents per page ,when user clicks on second page then i need to send more 20 out of 67656 record's,
Is there any way to sort this out.
Have a look at size and from parameters then.
They are helping for pagination.
© 2020. All Rights Reserved - Elasticsearch
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant logo are trademarks of the Apache Software Foundation in the United States and/or other countries.