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 AABA11080A for ; Tue, 17 Dec 2013 19:23:34 +0000 (UTC) Received: (qmail 58117 invoked by uid 500); 17 Dec 2013 19:23:30 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 58004 invoked by uid 500); 17 Dec 2013 19:23:30 -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 57996 invoked by uid 99); 17 Dec 2013 19:23:30 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Dec 2013 19:23:30 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of dileepajayakody@gmail.com designates 209.85.216.48 as permitted sender) Received: from [209.85.216.48] (HELO mail-qa0-f48.google.com) (209.85.216.48) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Dec 2013 19:23:26 +0000 Received: by mail-qa0-f48.google.com with SMTP id w5so2950031qac.14 for ; Tue, 17 Dec 2013 11:23:06 -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=vAzoXceE4pmRangWmialCh0CWL4Ov3WtozC1hgEJ5c0=; b=TP5/UwET20rWhfaxz9z0F6h4m04WMZZTFzxJVu+5tN2lhs2OpQDhTJv/8Ilk6iS9mh a6So1jqQOO9i5xDwgrwFEDkAmTSjC2dDSw0XU8O/A3ADlNzHEO+MChrlH9SrgHzsyNaj hBwvIy/CqFRvWvilMSuk6xcmTvcbXDzb4GgbLP5HtJZ6+v++3tJVCqGRh53g5yjVzWKq R+uD8HHybsknSHhiMlfXr/8RaPyi/L65LCtogTljzfsSE1Bbb1xl8t1sr7co9iUIIXmu YaNjyiGnLRwxWEFux6be05/t0wadbFpIvBv6OXB6LRuZVtYEGq6SUjvVPMSpRiCf/pqx VSgQ== MIME-Version: 1.0 X-Received: by 10.49.25.16 with SMTP id y16mr46239938qef.20.1387308185687; Tue, 17 Dec 2013 11:23:05 -0800 (PST) Received: by 10.224.151.136 with HTTP; Tue, 17 Dec 2013 11:23:05 -0800 (PST) In-Reply-To: <52AAF941.1000900@r.email.ne.jp> References: <52AAF941.1000900@r.email.ne.jp> Date: Wed, 18 Dec 2013 00:53:05 +0530 Message-ID: Subject: Re: Passing a Parameter to a Custom Processor From: Dileepa Jayakody To: solr-user@lucene.apache.org Content-Type: multipart/alternative; boundary=047d7b6222449a1a8b04edbfdba6 X-Virus-Checked: Checked by ClamAV on apache.org --047d7b6222449a1a8b04edbfdba6 Content-Type: text/plain; charset=ISO-8859-1 Thanks a lot for the info Koji. I'm going through the source-code, to find out. Regards, Dileepa On Fri, Dec 13, 2013 at 5:40 PM, Koji Sekiguchi wrote: > Hi Dileepa, > > The stanbolInterceptor processor chain will be used in multiple request >> handlers. Then I will have to pass the stanbol.enhancer.url param in each >> of those request handler which will cause redundant configurations. >> Therefore I need to pass the param to the processor directly. >> >> But when I pass the params to the Processor as below the parameter is not >> received to my ProcessorFactory class; >> http://localhost:8080/enhancer >> * >> >> >> >> Can someone point out what might be wrong here? Can someone please advice >> on how to pass parameters directly to the Processor? >> > > I don't know why your Processor cannot get the parameters, but Processor > should > get them. For example, StatelessScriptUpdateProcessorFactory can get > script > parameter like this: > > > updateProcessor.js > > > http://lucene.apache.org/solr/4_5_0/solr-core/org/apache/ > solr/update/processor/StatelessScriptUpdateProcessorFactory.html > > So why don't you consult the source code of StatelessScriptUpdateProcessorFactory, > etc? > > koji > -- > http://soleami.com/blog/automatically-acquiring-synonym-knowledge-from- > wikipedia.html > --047d7b6222449a1a8b04edbfdba6--