I have an ES index that is created from Java code level when I index a POJO with ElasticsearchClient.
How do I specify that I need certain fields to be type: "nested" in my index?
I have an ES index that is created from Java code level when I index a POJO with ElasticsearchClient.
How do I specify that I need certain fields to be type: "nested" in my index?
You have to create the index with an index mapping that defines those fields as nested. With that mapping in place, the corresponding fields will be indexed as nested values.
© 2020. All Rights Reserved - Elasticsearch
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.