setFrom() method of SearchRequestBuilder class only accept a int value, so if i have to fetch record which is greater than a int value (2147483647) for example -
SearchRequestBuilder.setFrom(21474836478)
The above value is not accepted as it is greater than maximum integer value.
So is it possible to pass Long as a parameter in setFrom() as parameter or is there any other API of elasticsearch which i can use to fetch results for more than max int value (i.e. 2147483647) ?
setFrom() method of SearchRequestBuilder class only accept a int value, so
if i have to fetch record which is greater than a int value (2147483647) for
example -
SearchRequestBuilder.setFrom(21474836478)
The above value is not accepted as it is greater than maximum integer value.
So is it possible to pass Long as a parameter in setFrom() as parameter or
is there any other API of elasticsearch which i can use to fetch results for
more than max int value (i.e. 2147483647) ?
Yes user need to display the 21 474 836 478th record or beyond that but since the from query does not accept a long value i cannot pass the 21 474 836 478th value.
So, you mean that if the user can get 10 results per page, he will click 2 147
483 647 times to get the last result ?
And this latest documents are important as the first ones ?
I still don't understand your use case.
When I search "test" in google, I get only the first ten pages (so about 100
documents) of about 3 140 000 000 documents.
I can't go to the 3 140 000 000th documents. I will scroll during many years
before getting the last result.
Yes user need to display the 21 474 836 478th record or beyond that but since
the from query does not accept a long value i cannot pass the 21 474 836
478th value.
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.