You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Noble Paul നോബിള് नोब्ळ् <no...@corp.aol.com> on 2009/06/22 05:49:34 UTC
Re: DataImportHandler configuration - externalizing
environment-specific settings?
There is no straight way but there is a way
http://wiki.apache.org/solr/DataImportHandlerFaq#head-c4003ab5af86a200b35cf6846a58913839a5a096
On Mon, Jun 22, 2009 at 6:23 AM, Erik Hatcher
<er...@ehatchersolutions.com> wrote:
>
> In an environment where there are developer machines, test, staging, and production servers there is a need to externalize DIH configuration options like JDBC connections strings (at least the database server name), username, password, and base paths for XML and plain text files.
>
> How are folks handling this currently? Didn't seem to be a way to use system properties like we can in solrconfig/schema.xml files using ${sys.property[:defaultValue]} syntax. Having system properties be available in the variable resolver would be quite useful. Is this already there and I missed it?
>
> Thanks,
> Erik
>
--
-----------------------------------------------------
Noble Paul | Principal Engineer| AOL | http://aol.com
Re: DataImportHandler configuration - externalizing environment-specific settings?
Posted by Erik Hatcher <er...@ehatchersolutions.com>.
Ah, thanks Noble. I should have figured that one out myself - I think
the built-in capabilities of setting a parameter from the handler
mapping will do the trick nicely, indirecting it from a system property.
Erik
On Jun 21, 2009, at 11:49 PM, Noble Paul നോബിള്
नोब्ळ् wrote:
> There is no straight way but there is a way
> http://wiki.apache.org/solr/DataImportHandlerFaq#head-c4003ab5af86a200b35cf6846a58913839a5a096
>
> On Mon, Jun 22, 2009 at 6:23 AM, Erik Hatcher
> <er...@ehatchersolutions.com> wrote:
>>
>> In an environment where there are developer machines, test,
>> staging, and production servers there is a need to externalize DIH
>> configuration options like JDBC connections strings (at least the
>> database server name), username, password, and base paths for XML
>> and plain text files.
>>
>> How are folks handling this currently? Didn't seem to be a way to
>> use system properties like we can in solrconfig/schema.xml files
>> using ${sys.property[:defaultValue]} syntax. Having system
>> properties be available in the variable resolver would be quite
>> useful. Is this already there and I missed it?
>>
>> Thanks,
>> Erik
>>
>
>
>
> --
> -----------------------------------------------------
> Noble Paul | Principal Engineer| AOL | http://aol.com