Created
February 5, 2013 02:16
-
-
Save kevindoran/4711549 to your computer and use it in GitHub Desktop.
Example of copy and dynamic fields in Solr schema
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <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