Added set_index. It allows to ensure that there is no other index on given field.