[英]schema shared between multiple collections when creating collections in solr
Say I've created one collection namely myCollection and indexed some of the documents in it. 假设我已经创建了一个集合,即myCollection,并为其中的一些文档建立了索引。 so after indexing, myCollection's schema changes as per indexing.let's say after indexing following fields are added in configset :
所以在建立索引之后,myCollection的架构会按照indexing.Index的说法说,在建立索引之后,在configset中添加了以下字段:
a.app_id
b.app_name
c.app_desc
till now everything is ok. 到现在为止一切正常。 But whenever i created new collection ex.MyCollection2.
但是每当我创建新集合ex.MyCollection2时。 Then all of the fields defined above are copied into MyCollection2's schema.xml which i don't want.
然后,将上面定义的所有字段都复制到我不想要的MyCollection2的schema.xml中。
I want diff schema.xml for different solr collections.I want fresh collection with only default "ID" field in it. 我想为不同的Solr集合使用diff schema.xml。我想要仅具有默认“ ID”字段的新集合。
Is there any way to do this in solrcloud? 在solrcloud中有什么方法可以做到这一点?
Create a configSet for each collection and reference that configuration when creating the collection. 为每个集合创建一个configSet,并在创建集合时引用该配置。 The configSet is shared across all collections.
configSet在所有集合之间共享。
Use the baseConfigSet
argument to clone an existing configset. 使用
baseConfigSet
参数克隆现有的配置集。
baseConfigSet
baseConfigSet
The name of the configset to copy as a base.
要复制为基础的配置集的名称。 This defaults to
_default
默认为
_default
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.