Switch to elasticsearch.

Change-Id: Iaf05d67cac7c4a61158a54c3c03f30bbc35b1cec
Add script to build index configuration.

Change-Id: I2a2ad9ee0895605726d0082f1b42bea56fcb67f8