Added capability to create index, plus throw on ES errors