[英]How to create a new type in ElasticSearch?
I'm very new to ElasticSearch. 我是ElasticSearch的新手。 I have created new index and I was wondering how to put a new type "users" in it. 我创建了新索引,我想知道如何在其中添加新类型的“用户”。
Thanks in advance 提前致谢
You don't really need to put a type, it will be automatically created when you put your first document with the Index API . 您实际上并不需要放置类型,当您使用Index API放置第一个文档时,它会自动创建。 However, you usually want to put a mapping before starting to put documents. 但是,您通常要在开始放置文档之前放置映射 。 When you put a mapping, the type is initialized as well. 放置映射时,类型也会被初始化。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.