I want to have 'section_id' in _source limited to size 2. So the thing is section_id returns a ton of ids (like around 100). I just want to return thefirst two values
The issue here is that arrays in Elasticsearch (and in JSON more generally) are not ordered at all. So the first two this time might be different next time, there's no guarantee.
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.