From solr-user-return-77322-apmail-lucene-solr-user-archive=lucene.apache.org@lucene.apache.org Thu Jan 10 14:22:18 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 D0A4CD941 for ; Thu, 10 Jan 2013 14:22:18 +0000 (UTC) Received: (qmail 40593 invoked by uid 500); 10 Jan 2013 14:22:15 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 40517 invoked by uid 500); 10 Jan 2013 14:22:15 -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 40509 invoked by uid 99); 10 Jan 2013 14:22:15 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Jan 2013 14:22:15 +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 arafalov@gmail.com designates 209.85.220.54 as permitted sender) Received: from [209.85.220.54] (HELO mail-pa0-f54.google.com) (209.85.220.54) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Jan 2013 14:22:09 +0000 Received: by mail-pa0-f54.google.com with SMTP id bi5so379957pad.13 for ; Thu, 10 Jan 2013 06:21:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=SbGUWe7E+uhWPiyk/iPNbLm9oqknJuJdrC5hRs9sYfk=; b=GSG8x2oVdDQvdr0KGsXCHKAMLOO50ZsdRwCz5hzJmt4DjR3xLz5wlOGN4yvHnPFU0b JNf1gdpuaIotmmYeJDRwvqXCdA5k4WEEIED9xc7SSDaOxqGjcUk1uiR/ZKgJ0CPexnve GR3vkHL9rS52eeahZL91Q73ycvz0426BfzZ4WEjGFx0bfyA2rVL/zPWrvRCwtDac5zV+ UO2RNwj8zR8jEGHzIymrKnJ1I1xye/Yf2vbgihikVCQIajdzZCn9h2JI8jdF+sbUoJZr pm2pq6UQAuqf100nFroL3y+JkuYNKbeOtmMOTujWylxe0eZ5+EeRLnwtknPJTeuYn59h 5pfw== Received: by 10.66.82.162 with SMTP id j2mr198386207pay.13.1357827708483; Thu, 10 Jan 2013 06:21:48 -0800 (PST) MIME-Version: 1.0 Received: by 10.66.159.100 with HTTP; Thu, 10 Jan 2013 06:21:08 -0800 (PST) In-Reply-To: References: From: Alexandre Rafalovitch Date: Thu, 10 Jan 2013 09:21:08 -0500 Message-ID: Subject: Re: Reading properties in data-import.xml To: solr-user@lucene.apache.org Content-Type: multipart/alternative; boundary=f46d042de6333af91204d2efe676 X-Virus-Checked: Checked by ClamAV on apache.org --f46d042de6333af91204d2efe676 Content-Type: text/plain; charset=UTF-8 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? > --f46d042de6333af91204d2efe676--