make the action data available to the filter script

I have a script which needs to known the _index the document is being indexed to, so it needs the data from the "action" line of the bulk request