setFrom() method of SearchRequestBuilder class only accepts a int value


(kanishk) #1

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) ?

Thanks


(system) #2