DataStax Enterprise 3.1 Documentation

Using legacy data

This documentation corresponds to an earlier product version. Make sure this document corresponds to your version.

Latest DSE documentation | Earlier DSE documentation

To use DSE Search/Solr data from an 3.0 release or earlier, you need to use the legacy type mapping. A solrconfig.xml option, dseTypeMappingVersion element, enables or disables the new Solr type mappings. By default, the new mappings are enabled by the solrconfig.xml of these DSE Search/Solr demos:

To use data from an earlier release in these demos, you need to disable the new Solr type mappings in the solrconfig.xml files of the demos by following these steps.

To run demos using data from an earlier release

  1. Enable the default legacy type mapping by commenting out the dseTypeMappingVersion element.

    <!-- <dseTypeMappingVersion>1</dseTypeMappingVersion> -->
    

    You can also use 0 instead of 1 for the version.

  2. Delete the wikipedia data in Cassandra database and the Solr index.

  3. Upload the solrconfig.xml and schema.xml.

    curl http://localhost:8983/solr/resource/wiki.solr/solrconfig.xml --data-binary @solrconfig.xml -H 'Content-type:text/xml; charset=utf-8'
    
    curl http://localhost:8983/solr/resource/wiki.solr/schema.xml --data-binary @schema.xml -H 'Content-type:text/xml; charset=utf-8'
    
  4. Reload the core

    curl "http://localhost:8983/solr/admin/cores?action=RELOAD&name=wiki.solr"
    

    Attempting to load a solrconfig with a different dseTypeMappingVersion configuration and reloading the core causes an error.

  5. Index the articles contained in the wikipedia-sample.bz2 file in the demo directory:

    ./2-index.sh --wikifile wikipedia-sample.bz2