How to set solr data-config.xml that could index different directories

How to set Solr config xml that it indexing different directories?