Hi @Altiano_Gerung , I doubt there's any way to do it from the query side, unless we have any parameters that supports this functionality in future. As of now, the workaround could be-
Writing a code in the painless script and attaching that to the ingest pipeline, which will dictate the field according to your requirements of the number of terms needed.
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.