Skip to content

Instantly share code, notes, and snippets.

@kevindoran
Created February 5, 2013 02:16
Show Gist options
  • Select an option

  • Save kevindoran/4711549 to your computer and use it in GitHub Desktop.

Select an option

Save kevindoran/4711549 to your computer and use it in GitHub Desktop.
Example of copy and dynamic fields in Solr schema
<schema name="example" version="1.5">
<fields>
<field name="title" type="text_en" indexed="true" stored="true" required="true" multiValued="false" />
<field name="category" type="string" indexed="true" stored="true" required="true" multiValued="false" />
<field name="feature" type="string" indexed="true" stored="true" required="false" multiValued="true" />
<field name="allText" type="text_en" indexed="true" stored="false" required="true" multiValued="true" />
</fields>
<copyField source="title" dest="allText" />
<copyField source="category" dest="allText" />
<copyField source="feature" dest="allText" />
<dynamicField name="*" type="ignored" multiValued="true" />
</schema>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment