Return-Path: Delivered-To: apmail-lucene-solr-user-archive@minotaur.apache.org Received: (qmail 96293 invoked from network); 5 May 2010 17:54:02 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 5 May 2010 17:54:02 -0000 Received: (qmail 30092 invoked by uid 500); 5 May 2010 17:53:59 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 29979 invoked by uid 500); 5 May 2010 17:53:59 -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 29971 invoked by uid 99); 5 May 2010 17:53:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 May 2010 17:53:59 +0000 X-ASF-Spam-Status: No, hits=0.4 required=10.0 tests=AWL,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of noble.paul@gmail.com designates 209.85.222.180 as permitted sender) Received: from [209.85.222.180] (HELO mail-pz0-f180.google.com) (209.85.222.180) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 May 2010 17:53:54 +0000 Received: by pzk10 with SMTP id 10so565021pzk.20 for ; Wed, 05 May 2010 10:53:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:content-type; bh=RpwIkeIDruTEnYm14PEgR38c8BvmnLSvpq5O0uJ8Azg=; b=qc7ruHrYjcGSupS7Fw6hgGjwo0v5dkWewvlFmbTazyQ+wmNw6iFWljyt7ETX5xHUrX t0yRxT1tVktgsvwNXEpnBs9ZMYMB0rIGfbbSDMeLD+/B4paPanC6KTCsRi62cRtNrb+0 +vNkvn7ppW6oIB2xPAgD/YUXpKy3lQaTCWMsw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=gJEpkgqMF4DrZz60ZyEIt6i4+e93Nd5hBoVcra+XxUmpNqd4ZCaiMTtxBfTd2tNDy5 wNvxSlO2GbWaEKlI+0kTJ5ISJyEsHBxtyI8kQbA5eXw3TPX864BIF2HLVdCWDjjIswQ4 2CinASYbVsifPGnIYSf7B7D0oRSDHXXSXq8UA= Received: by 10.140.87.23 with SMTP id k23mr5911082rvb.108.1273082013730; Wed, 05 May 2010 10:53:33 -0700 (PDT) MIME-Version: 1.0 Received: by 10.140.157.8 with HTTP; Wed, 5 May 2010 10:53:13 -0700 (PDT) In-Reply-To: <1273074123476-779278.post@n3.nabble.com> References: <1273019716494-777696.post@n3.nabble.com> <1273074123476-779278.post@n3.nabble.com> From: =?UTF-8?B?Tm9ibGUgUGF1bCDgtKjgtYvgtKzgtL/gtLPgtY3igI0gIOCkqOCli+CkrOCljeCks+CljQ==?= Date: Wed, 5 May 2010 23:23:13 +0530 Message-ID: Subject: Re: Custom DIH variables To: solr-user@lucene.apache.org Content-Type: text/plain; charset=ISO-8859-1 ok , u can't write a variable. But you may write a function (Evaluator). it will look something like ${dataimporter.functions.foo()} http://wiki.apache.org/solr/DataImportHandler#Custom_formatting_in_query_and_url_using_Functions On Wed, May 5, 2010 at 9:12 PM, Blargy wrote: > > Thanks Paul, that will certainly work. I was just hoping there was a way I > could write my own class that would inject this value as needed instead of > precomputing this value and then passing it along in the params. > > My specific use case is instead of using dataimporter.last_index_time I want > to use something like dataimporter.updated_time_of_last_document. Our DIH is > set up to use a bunch of slave databases and there have been problems with > some documents getting lost due to replication lag. > > I would prefer to compute this value using a custom variable at runtime > instead of passing it along via the params. Is that even possible? If not > Ill have to go with your previous suggestion. > > Thanks > -- > View this message in context: http://lucene.472066.n3.nabble.com/Custom-DIH-variables-tp777696p779278.html > Sent from the Solr - User mailing list archive at Nabble.com. > -- ----------------------------------------------------- Noble Paul | Systems Architect| AOL | http://aol.com