From solr-user-return-77408-apmail-lucene-solr-user-archive=lucene.apache.org@lucene.apache.org Fri Jan 11 14:23:52 2013 Return-Path: X-Original-To: apmail-lucene-solr-user-archive@minotaur.apache.org Delivered-To: apmail-lucene-solr-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3A8E1EAE4 for ; Fri, 11 Jan 2013 14:23:52 +0000 (UTC) Received: (qmail 72962 invoked by uid 500); 11 Jan 2013 14:23:49 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 72912 invoked by uid 500); 11 Jan 2013 14:23:48 -0000 Mailing-List: contact solr-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-user@lucene.apache.org Delivered-To: mailing list solr-user@lucene.apache.org Received: (qmail 72904 invoked by uid 99); 11 Jan 2013 14:23:48 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Jan 2013 14:23:48 +0000 X-ASF-Spam-Status: No, hits=2.8 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of dariusz.b@gmail.com designates 209.85.212.179 as permitted sender) Received: from [209.85.212.179] (HELO mail-wi0-f179.google.com) (209.85.212.179) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Jan 2013 14:23:42 +0000 Received: by mail-wi0-f179.google.com with SMTP id o1so1055538wic.12 for ; Fri, 11 Jan 2013 06:23:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=NZeZBJ3pdNwFp52x0Wd7+DuuJuO/+dsv0m2bAmvA+2c=; b=nPtFGbQXS1uwXXnjaOIdl30Mo7lOEdxsv2JFjStZro1fDuoIjHKgOeSdpEvS2Z18F+ b+sB/36c82E4KxPXbl8Gf5rBXCQqhlV4mUZxpuigPWb2NJU9QIRdT2LgDXoKAQ41EaSZ SwSSkyUtYth/zSdYJvII8uU5cfQ8uXtysIpE10rFKGFU72n7oX3pdKfLdvRqWLNILnHg MHzoN6npylL8sNAH3j/BBt53v5BpnxJ03F6SCi/XBLTFmtG9TuMTrL1nSsTCPrAAgid7 A+JMsvvMDmfnYgCo57dZn9Lxz0Qsg3PUa0zrtCDaXCFYDK5u5Vrwg9pOgCMvg6aLE1Ew rTcw== MIME-Version: 1.0 Received: by 10.180.88.138 with SMTP id bg10mr15499235wib.13.1357914202441; Fri, 11 Jan 2013 06:23:22 -0800 (PST) Received: by 10.194.142.239 with HTTP; Fri, 11 Jan 2013 06:23:22 -0800 (PST) In-Reply-To: References: Date: Fri, 11 Jan 2013 15:23:22 +0100 Message-ID: Subject: Re: Reading properties in data-import.xml From: Dariusz Borowski To: solr-user@lucene.apache.org Content-Type: multipart/alternative; boundary=f46d04426852ac091404d3040900 X-Virus-Checked: Checked by ClamAV on apache.org --f46d04426852ac091404d3040900 Content-Type: text/plain; charset=ISO-8859-1 Thanks Alex! This brought me to the solution I wanted to achieve. :) D. On Thu, Jan 10, 2013 at 3:21 PM, Alexandre Rafalovitch wrote: > dataimport.properties is for DIH to store it's own properties for delta > processing and things. Try solrcore.properties instead, as per recent > discussion: > > http://lucene.472066.n3.nabble.com/Reading-database-connection-properties-from-external-file-td4031154.html > > Regards, > Alex. > > Personal blog: http://blog.outerthoughts.com/ > LinkedIn: http://www.linkedin.com/in/alexandrerafalovitch > - Time is the quality of nature that keeps events from happening all at > once. Lately, it doesn't seem to be working. (Anonymous - via GTD book) > > > On Thu, Jan 10, 2013 at 3:58 AM, Dariusz Borowski >wrote: > > > I'm having a problem using a property file in my data-import.xml file. > > > > My aim is to not hard code some values inside my xml file, but rather > > reusing the values from a property file. I'm using multicore and some of > > the values are being changed from time to time and I do not want to > change > > them in all my data-import files. > > > > For example: > > > > > type="JdbcDataSource" > > driver="com.mysql.jdbc.Driver" > > url="jdbc:mysql://${host}:3306/projectX" > > user="${username}" > > password="${password}" /> > > > > I tried everything, but don't know how I can use proporties here. I tried > > to put my values in dataimport.properties, located under "SOLR-HOME/conf" > > and under "SOLR-HOME/core1/conf", but without any success. > > > > Please, could someone help me on this? > > > --f46d04426852ac091404d3040900--