Hi Everyone,

I have the following block of code in my solrconfig.xml

  <updateProcessor class="solr.AddSchemaFieldsUpdateProcessorFactory"
name="add-schema-fields">
    <lst name="typeMapping">
      <str name="valueClass">java.lang.String</str>
      <str name="fieldType">text_en</str>
      <!-- Use as default mapping instead of defaultFieldType -->
      <bool name="default">true</bool>
    </lst>

This is creating a new field like so:

  <field name="Name" type="text_en"/>

I need it to include additional field settings, so that I would have the
following:

  <field name="Name" type="text_en" multiValued="true" indexed="true"
required="false" stored="false"/>

I need to have be able to set the value for "multiValued" and "stored"
because based on Solr doc [1], if those 2 properties are missing, the
default will be used and thus I would end up with:

  <field name="Name" type="text_en" multiValued="false" indexed="true"
required="false" stored="true"/>

(See how "multiValued" is "false" and "stored" is "true").

Can someone tell me how I can provide these additional properties on
"typeMapping" of dynamic field creation?

Thanks

Steven

[1] https://solr.apache.org/guide/8_6/defining-fields.html

Reply via email to