Hi:
I am using logstash 1.5.3 and trying to reindex an existing index to a new index with modified mapping. To test if this works on nested fields, I gave the following config a shot :
Where entities is a nested field and kb is a nested field within. However, this approach is not removing the field.
What ends up happening is the new mapping is created where the nested field is no longer a nested field (not a problem) and the field still exists (big problem). I am able to get rid of the top level nested field ("entities") but not any sub fields or sub nested fields of "entities"
I think the syntax for accessing/mutating/modifying nested fields is right (various posts have alluded to documentation, but I cannot find documentation regarding how to specify nested fields). Any help in this regards is very much appreciated.
Hi Magnus:
Thanks for the response. What I have found is in my index, I have a nested field which in turn has a nested field. I wanted to promote the inner nested field to the top level (so as to flatten the structure out). So Iwas using mutate to remove the inner nested field and add it back as a top level field.
However, I was unable to do so on the field as it was defined. When I created the following config:
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.