Set the location of search indexes

Steps to set the location of the search index data on the server.

Data that is added to a DSE Search node is locally indexed on the DSE node. Data changes to one node also apply to the other nodes. DSE Search has its own indexing documents. You can control where the DSE Search indexing documents are saved on the server. By default, each DSE Search index is saved in solrconfig_data_dir/keyspace_name.table_name, or as specified by the dse.solr.data.dir system property.

Note: The dataDir parameter in the solrconfig.xml file is not supported.

Procedure

  1. Shut down the search node.
  2. Move the solr.data directory to the new location.
  3. Specify the location:
    OptionDescription
    From the command line To dynamically change:
    cd installation_location && 
    bin/dse cassandra -s -Ddse.solr.data.dir=My_data_dir
    In dse.yaml To permanently change:
    solr_data_dir: My_data_dir

    dse.yaml

    The location of the dse.yaml file depends on the type of installation:

    Package installations
    Installer-Services installations

    /etc/dse/dse.yaml

    Tarball installations
    Installer-No Services installations

    installation_location/resources/dse/conf/dse.yaml
  4. Start the node.