Provide className and fields in index creation