'Create solr collection or core and instance dir.
Create schema.xml file so that we can set UniqueKey field.'

def create_collection(self, name, fields, unique_key_field='id', df='text'):

    if self.is_solr_cloud_mode():
        self._create_solr_cloud_collection(name, fields, unique_key_field, df)
    else:
        self._create_non_solr_cloud_collection(name, fields, unique_key_field, df)
