简体   繁体   English

如何在ElasticSearch中创建新类型?

[英]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.

相关问题 Elasticsearch拒绝文档上传,因为它试图创建新的映射类型 - Elasticsearch rejecting document upload as attempt to create a new mapping type 如何在 ElasticSearch 中创建自定义可重用类型? - How to create a custom reusable type in ElasticSearch? Elasticsearch:是新类型还是新索引? - Elasticsearch: new type or new index? Elasticsearch推向新类型 - Elasticsearch projections onto new type 如何从.Net或NEST在Elasticsearch 5中创建新索引 - How to create a new index in Elasticsearch 5 from .Net or NEST 如何在 ElasticSearch 中的索引期间从现有字段创建新字段? - How to create a new field from existing fields during indexing in ElasticSearch? 如何在 elasticsearch 中创建一个新字段并将 postges 中的数据导入其中? - How to create a new field in elasticsearch and import data from postges into it? 如何使用Java API创建和检索具有复杂类型的Elasticsearch字段? - How to create and retrieve using the Java API an Elasticsearch field with a complex type? 如何创建 ElasticSearch 类型并使其可在索引内搜索 - How to create an ElasticSearch Type and make it searchable inside the Index 如何使用多类型字段创建弹性搜索索引? - how can i create elasticsearch index with multi type field?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM