Creates elasticsearch index with the correct field definitions