Solr will ignore "required" for dynamic fields. It will be parsed and preserved, but will not affect the check for required fields in an input document.

Ditto for "default" value for a dynamic field.

-- Jack Krupansky

-----Original Message----- From: Alexandre Rafalovitch
Sent: Friday, January 18, 2013 12:08 AM
To: solr-user@lucene.apache.org
Subject: Is required="true" useless in dynamicField?

Hello,

Given the definition:
<dynamicField name="addr_*" type="email" multiValued="true" indexed="true"
stored="true" required="true" />

Does it actually matter whether I specify required? I guess there is no way
to have it enforced, right?

Looking at the Wiki, dynamicField does not actually say what parameters it
cares about, so it probably does not even read it from the definition.

Regards,
   Alex.
Personal blog: http://blog.outerthoughts.com/
LinkedIn: http://www.linkedin.com/in/alexandrerafalovitch
- Time is the quality of nature that keeps events from happening all at
once. Lately, it doesn't seem to be working. (Anonymous - via GTD book)

Reply via email to