Allowed customization of type in elasticsearch search