Use same protocol for elasticsearch as everything else. Closes #1586
Merge pull request #1680 from rashidkpc/fix/elasticsearch-endpoint-protocol

Use same protocol for elasticsearch as everything else. Closes #1586