Create index/mapping even if no data

Is there something unclear about it? I wrote it so it makes sense to me. Knowing what might be unclear would help a comment.