-
Notifications
You must be signed in to change notification settings - Fork 53
Support variables in core.properties and import parameters #93
Copy link
Copy link
Open
Description
What I'm trying to do
Run an import (curl http://localhost:8983/solr/my-core/dataimport?command=full-import) with a config file that includes parameters:
// db-data-config.xml contains:
<dataSource type="JdbcDataSource"
driver="org.postgresql.Driver"
url="jdbc:postgresql://${solr.sgbd.host}:${solr.sgbd.port}/${solr.database.name}"
user="${solr.sgbd.user}"
password="${solr.sgbd.password}" />
What I tried
- Having a
core.propertiesthat includes those properties. It was working with Solr 8 and it's not working after my upgrade to Solr 9 + independent DIH - Passing the properties through the URL of the import `curl http://localhost:8983/solr/my-core/dataimport?command=full-import&solr.sgbd.host=postgres&solr.sgbd.port=5432&solr.database.name=my_database&solr.sgbd.user=my_user&solr.sgbd.password=my_password"
If my second try doesn't work, how can I use variables inside my XML file?
Thanks
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels