| 55 | | * Now, we will discuss the schema changes - |
| | 55 | * Now, we will discuss the schema changes in file solr-4.3.x/example/solr/collection1/conf/schema.xml - |
| | 56 | * Add the following in the <fields>..</fields> tag: |
| | 57 | {{{ |
| | 58 | <fields> |
| | 59 | . |
| | 60 | . |
| | 61 | |
| | 62 | <field name="tablename" type="text_general" indexed="true" stored="true"/> |
| | 63 | <field name="filetype" type="text_general" indexed="true" stored="true"/> |
| | 64 | <field name="filename" type="text_general" indexed="true" stored="true"/> |
| | 65 | |
| | 66 | . |
| | 67 | . |
| | 68 | </fields> |
| | 69 | }}} |
| | 70 | * After adding this, after the <fields>..</fields> tag, add the following code for <copyfield> |
| | 71 | {{{ |
| | 72 | |
| | 73 | <copyField source="filetype" dest="text"/> |
| | 74 | <copyField source="tablename" dest="text"/> |
| | 75 | <copyField source="filename" dest="text"/> |
| | 76 | |
| | 77 | }}} |
| | 78 | |
| | 79 | |