Changing the copy field value
Steps for changing the value of the copy field.
Procedure
-
Change the stored attribute value of a copyField directive from true to
false.
- Change the values of stored copyField directives to false.
- Post the solrconfig.xml and the modified schema.xml.
- Reload the Solr core, specifying an in-place re-index.
Previously stored copies of data are not automatically removed from Cassandra.
-
Changing the stored attribute value from false to true is not directly
supported. The workaround is:
- Remove the copyField directives that have stored=false.
- Reload the solrconfig.xml and schema.xml. Use the reindex=true option.
- Add back the copyField directives you removed to the schema.xml and set stored=true.
- Post the solrconfig.xml and the modified schema.xml.
- Reload the Solr core, specifying an in-place re-index.
- Re-ingest the data.
Stored values are not automatically removed from Cassandra.