Skip to content

Support variables in core.properties and import parameters #93

@qlereboursBS

Description

@qlereboursBS

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

  1. Having a core.properties that includes those properties. It was working with Solr 8 and it's not working after my upgrade to Solr 9 + independent DIH
  2. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions