ramv/node-elastical — pull request #2 by vvision (2012-10-25 12:45:59+00:00)
Title: Add query option in function delete.

Currently, the only way of deleting using a query is to "hack" function delete with something like:
```Javascript
client.delete('twitter', 'tweet', '', {q: 'user:Shay'} );
```
The aim of the modification is to be able to do things like:
```
$ curl -XDELETE 'http://localhost:9200/twitter/tweet/_query' -d '{
"term" : { "user" : "kimchy" }
}
'
```

So, by passing an object to the query option, we can now perform similare request.
Example:
```
client.delete('twitter', 'tweet', '', {query: {
"term" : { "user" : "kimchy" }
} });
```