Delete or update document without document_id

There is an example of connecting to elasticsearch using an http filter here. It is an update rather than update-by-query, but the API documentation explains how to do the latter.