fix problem with es mappings not being stored correctly
Merge pull request #72 from ceilingfish/develop-mapping-fix

fix problem with es mappings not being stored correctly