rgrove/node-elastical — pull request #6 by mehtryx (2011-11-15 21:09:11+00:00)
Title: Support for HTTP Auth on request and Fix for bulk index 'percolate'

I've been working with your client and ran into two items I felt could be helpful.

1) Current implementation of elasticsearch does not support _percolate during a bulk index, only 'percolate' I've modfied the code for this exception, should it be fixed this will not be required but will also not break.

2) Many people have asked and look for ways to authenticate...when they do the trick is then having the client support it. I reviewed the lib your useing for request and it supports http basic auth as well as https protocol. I've modified the code to allow additional options to be specified which you can use to accomplish requests with http auth inplain text or http auth encrypted or by default connect without authentication at all.

Please review the changes, I've run the vows tests (online and offline) to vet the code as is, further testing in my environment which uses nginx as a reverse proxy with authentication and the use of percolate on my bulk indexes is working great.

Thanks.