If you have id listed as a required field (which I believe you need to
anyway), what do you actually get when you add a document without
nesting? What does the document echo back?

Because if you are getting a document back without id field when it is
declared required in the schema, that would be a problem of its own.

Regards,
   Alex.
----
Newsletter and resources for Solr beginners and intermediates:
http://www.solr-start.com/


On 18 November 2015 at 17:35, CrazyDiamond <crazy_diam...@mail.ru> wrote:
> i'm trying to add document with the nested objects but don't want id to be
> generated automatically.
> When i add document without nesting it's ok.But if i add  _childDocuments_
> there is an error [doc=null] missing required field: id
>
>
>
> --
> View this message in context: 
> http://lucene.472066.n3.nabble.com/adding-document-with-nested-document-require-to-set-id-tp4240908.html
> Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to