Fixed
Details
Assignee
Yoann RodièreYoann RodièreReporter
Yoann RodièreYoann RodièreComponents
Sprint
NoneFix versions
Priority
Major
Details
Details
Assignee
Yoann Rodière
Yoann RodièreReporter
Yoann Rodière
Yoann RodièreComponents
Sprint
None
Fix versions
Priority
Created May 16, 2019 at 1:43 PM
Updated May 24, 2019 at 1:38 PM
Resolved May 21, 2019 at 1:24 PM
Neither Lucene nor Elasticsearch support a limit higher than
Integer.MAX_VALUE
, which is understandable.A bit less understandable is the fact that Elasticsearch does not support an offset higher than
Integer.MAX_VALUE
, despite the fact they claim that a single index may hold more than that many documents due to the fact it's sharded: see the note near the bottom of https://www.elastic.co/guide/en/elasticsearch/reference/7.0/getting-started-concepts.html#getting-started-shards-and-replicasAnyway, that's a very exotic use. Let's remove the methods accepting longs for now, we can always add them back later. Let's keep a long for the hit count, though: it's consistent with JPA, and I suspect Elasticsearch may still return a long in that case.