One doc for each array item

It should be targetUrl, not targeturl.

If you want to move every field inside userActions to the top level it might be easier to do it like this, in a ruby filter.