You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Hendrik Haddorp <he...@gmx.net> on 2015/09/11 23:21:52 UTC

adding fields to a managed schema using solr cloud

Hi,

I have a simple Solr 5.3 cloud setup with two nodes using a manged
schema. I'm creating a collection using a schema that initially only
contains the id field. When documents get added I'm dynamically adding
the required fields. Currently this fails quite consistently as in bug
SOLR-7536 but can be over come by reloading the collection. The problem
now is however that SchemaRequest.AddField seems to return before the
field is visible on all nodes. So when I read out the schema again there
is a chance that my field is not listed yet. The only way to get around
that seems to do an explicit collection reload after the schema
modifications are done. Is that expected?

regards,
Hendrik