简体   繁体   中英

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. so after indexing, myCollection's schema changes as per indexing.let's say after indexing following fields are added in configset :

a.app_id
b.app_name
c.app_desc

till now everything is ok. But whenever i created new collection ex.MyCollection2. Then all of the fields defined above are copied into MyCollection2's schema.xml which i don't want.

I want diff schema.xml for different solr collections.I want fresh collection with only default "ID" field in it.

Is there any way to do this in solrcloud?

Create a configSet for each collection and reference that configuration when creating the collection. The configSet is shared across all collections.

Use the baseConfigSet argument to clone an existing configset.

baseConfigSet

The name of the configset to copy as a base. This defaults to _default

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM