{
"svgconfig" : [function: test 1, function: test 2],
"svgconfig" : test 3,
"svgconfig" : [function: test 4, function: test 5]
}
This isn't really possible in JSON as it is a object and so the keys must be unique (in your example you have 3 svgconfig keys). also you want that, if there's only one function block, that there is no array and just the value? that complicates things
i want group the value of function by svgconfig .
for example the svgconfig with name 'SVG1' i have 3 functions (test1, test2 and test 3).
i edit my file xml, now is copmlet
I'm not very well versed with elasticsearch, but I think that, for that purpose, you need to send each function in a separate event, so
SVG1, test 1
SVG1, test 2
SVG2, test 3
SVG3, test 4
SVG3, test 5
I'm not sure how to do this in xpath as I'm not an expert, maybe chain two xml filters, one that breaks each svgconfig, then one that breaks each function
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.