create index with config

and with other minor needed for put mapping and setting