Your Collection's schema is part of a ConfigSet 
(https://solr.apache.org/guide/8_11/config-sets.html 
<https://solr.apache.org/guide/8_11/config-sets.html>).
Multiple collections may use the same ConfigSet.
The gotcha is that when you modify schema for collection A, what you really do 
is modify the schema in the ConfigSet for collection A.
IMO the schema API should have been part of configset api to clarify this.

You can get around this by clone your ConfigSet and create the new collection 
using the cloned copy.

Jan

> 3. mai 2022 kl. 17:22 skrev Serban Alexe <serban.al...@gmail.com>:
> 
> Hi all,
> 
> I have a SOLR Server with several collections.
> 
> To retrieve the properties of the fields, I ran these requests:
> 
>   - GET http://localhost:8983/solr/<collection_id_1>/schema/fields
>   - GET http://localhost:8983/solr/<collection_id_2>/schema/fields
> 
> Then I ran a POST http://localhost:8983/solr/<collection_id_1>/schema
> request, with the content needed to change some fields properties.
> 
> After this, I noticed that *the same fields properties changes were also
> modified for* collection_id_2.
> 
> Is this normal behaviour ?
> What did I do wrong ?
> Thank you.
> 
> --
> Şerban Alexe

Reply via email to