Hi,
I have a custom plugin that generates a list of struct objects. something like [{field 1: value,field 2: value},{field 1: value,field 2: value},,,,] for request field.
I updated the elasticsearch template and set type: nested for my plugin event mapping. How do i assign these values to the fields in go. using Mapstr.
You have some sample code? Just assigning your struct might work (given symbols are exported). Otherwise you have to transform your structs into MapStr yourself.
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.