Split filter eliminates documents

I have a json array like this :
"gateways":[{"a":""},{},{}]
when I use split
> split {
> field => "[gateways]"
> }
it eliminates document which has empty array "gateways":[]
any help !?

You could wrap your filter with an if condition. I can't test it right now, but something like if([gateways] != []) might work.

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.