elasticsearch: avoid redefining builtin types