Fixes elasticsearch reindexing.

Mapping wasn't added correctly.