Neither Lucene nor Elasticsearch supports limits or offsets higher than Integer.MAX_SIZE. Cancelling this ticket; I opened HSEARCH-3577 Open .