Revert "Remove the create index function since we want to use dynamic mapping."
Revert "Remove the create index function since we want to use dynamic mapping."

This reverts commit 5c38664d7c26862c9ed27d0792538d96865034af.

joe1chen/nodebb-plugin-search-elasticsearch