Added elastic search mode.