Replace index name and type with constants

Use constants EX_INDEX and ES_TYPE to reference index and type