Hi Friends,
I use a jdbc_streaming filter in order to enrich data.
This filter produces an array with only 1 document inside. How can I pop out this document in another field? I tried without success with ruby code.
Just to do an example:
This is the final output:
"reg_pro_com" : [
{
"nomeR" : "Sicilia",
"nomeC" : "Ragusa",
"nomeP" : "Ragusa"
}
],
I wish to have:
"reg_pro_com" : {
"nomeR" : "Sicilia",
"nomeC" : "Ragusa",
"nomeP" : "Ragusa"
}
I have to use add_field? How can I access the array without Ruby Code?
KR
Roberto