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 9946919853 for ; Sat, 26 Mar 2016 16:17:00 +0000 (UTC) Received: (qmail 58090 invoked by uid 500); 26 Mar 2016 16:16:55 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 58018 invoked by uid 500); 26 Mar 2016 16:16:55 -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 58005 invoked by uid 99); 26 Mar 2016 16:16:55 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 26 Mar 2016 16:16:55 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 350DCC008B for ; Sat, 26 Mar 2016 16:16:55 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.198 X-Spam-Level: ** X-Spam-Status: No, score=2.198 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_REPLY=1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id CezNx3OFrdJW for ; Sat, 26 Mar 2016 16:16:52 +0000 (UTC) Received: from mail-qg0-f41.google.com (mail-qg0-f41.google.com [209.85.192.41]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id ACE315F473 for ; Sat, 26 Mar 2016 16:16:51 +0000 (UTC) Received: by mail-qg0-f41.google.com with SMTP id j35so80068438qge.0 for ; Sat, 26 Mar 2016 09:16:51 -0700 (PDT) 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; bh=BFzJrH3U5seW5s/VD32UGNT5xkPK7+QMx64SdlMlQhA=; b=cupNx5ShNy9eR15XJFGZq3cbA9BS6dVHgyKAzBZQ1xm1bZI8pR3Udf0IV8NnAFNWf/ HY/ybFLwPnrBdi88qlDxcCs9qoEdisfnAuV+y8E47/3nHROnUmkRDX3Yqrh4we2usa8X 7XcyNQRybdSPjEmcRJHK1Wm4V0ukUFBoMiETXJ5I7+/0FVTkn8mdeKYLx6hmycqxkXul 5+Srn3VB9pk5ALyrOjm4rMZ50F68cWIR2VGHd1yhOphUlX2995QOyMuAGhRrsDHkLGQG Z6gIMu/sBqZyExqPe2FWYmqOLjvV01RvKXZ+7hcaifdPUrAxbSI9PUqxrMD5INP8pEg5 V6QA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to; bh=BFzJrH3U5seW5s/VD32UGNT5xkPK7+QMx64SdlMlQhA=; b=lEnn/7icyz73YNLqvxNWoL1dxMlWZ/kzT1OXXaNlhidvgeivWFIGTAl1oijHwPwYI8 /CPEEIPJx1GO1Iwd6Dp5gLCltVcPBViIcZB9Wv8oFQCGdHlsIb4coPDXEFLKMhc6zZuR AsjOwPh6zfgzKtJrFWlLBLbmX8G4DQhi7An+oAx8oW/SWpAtkPbDNhSGPNmMIAP8QNWs 8cwInWHXS8nz6BUlxNMcWaC+CRg++B2bHVqRtuCNIFSicuqj5F4S5XDHM9mSGgltCdEx +c7t/1NW0qHw06h3XeDDmO2mz9X9qVQH9P4NL3ESF5MiroOA/sUi4OAfrwiu/iRyO5q9 RMGA== X-Gm-Message-State: AD7BkJKPVNoWoyliir8pBM9dT7Pql2kvkgAsBX7DGMWBPvIj9aqnecAJ/Mj/t+zMB9uq9Erpmi4ddM6lH4Gg+w== MIME-Version: 1.0 X-Received: by 10.140.168.85 with SMTP id o82mr25907418qho.75.1459009005372; Sat, 26 Mar 2016 09:16:45 -0700 (PDT) Received: by 10.55.107.196 with HTTP; Sat, 26 Mar 2016 09:16:45 -0700 (PDT) Received: by 10.55.107.196 with HTTP; Sat, 26 Mar 2016 09:16:45 -0700 (PDT) In-Reply-To: References: Date: Sat, 26 Mar 2016 17:16:45 +0100 Message-ID: Subject: Re: Solr event listerns From: Andrea Gazzarini To: solr-user@lucene.apache.org Content-Type: multipart/alternative; boundary=001a113ab5d27d49fb052ef6019f --001a113ab5d27d49fb052ef6019f Content-Type: text/plain; charset=UTF-8 Hi Anil, If with "Application" you mean an external / remote Application then there's no such pre-built mechanism to do that. The event is not notifies "in" your application or "to" your application. Solr knows nothing about it. Specifically, event listeners allows you to do something when a given event happens...what exactly is "something" it's up to you; for instance you could (asynch) send a http message to your API, send a message to a queue, send a GCM message to some mobile device, or in general: everything :) but again, this is up to you. Andrea On 26 Mar 2016 15:46, "Anil" wrote: > HI Alex, > > i am still no clear how an event is notified in my application if it > listener is configured in SolrConfig.xml (centralized solr server). can you > please clarify? > > Sorry for dumb question. > > Thanks, > Anil > > On 26 March 2016 at 19:48, Andrea Gazzarini wrote: > > > Hi Anil, > > see here [1] where I did some data pre-loading at solr startup. The post > > has been written in 2014 so maybe something could have a different name > > (class, methods) > > > > Best, > > Andrea > > > > [1] > > > > > http://andreagazzarini.blogspot.it/2014/11/preloading-data-at-solr-startup.html > > On 26 Mar 2016 15:14, "Anil" wrote: > > > > > Thanks Alex. Let me digg more in that area. > > > > > > On 26 March 2016 at 19:40, Andrea Gazzarini wrote: > > > > > > > Event listeners are custom classes so you could do > > "anything"....however > > > I > > > > guess the event firing is synchronous so the listener logic should be > > > > no-blocking and as fast as possible. > > > > > > > > But this is my guess, I hadn't look at the code. Instead, if the > > listener > > > > invocation is asynch then forget my comment, the answer is yes. > > > > > > > > Best, > > > > Andrea > > > > On 26 Mar 2016 15:03, "Anil" wrote: > > > > > > > > > Can solr notify other systems on commit of document ? > > > > > > > > > > On 26 March 2016 at 13:59, Alexandre Rafalovitch < > arafalov@gmail.com > > > > > > > > wrote: > > > > > > > > > > > Well, the updated documents are not visible until the commit. So, > > > > > > perhaps you just need the commit listeners then. Those could be > any > > > > > > external scripts I believe. > > > > > > > > > > > > Regards, > > > > > > Alex. > > > > > > ---- > > > > > > Newsletter and resources for Solr beginners and intermediates: > > > > > > http://www.solr-start.com/ > > > > > > > > > > > > > > > > > > On 26 March 2016 at 17:14, Anil wrote: > > > > > > > Thanks Alex. > > > > > > > > > > > > > > i have gone through it. i am building a use case where cache > has > > to > > > > > > updated > > > > > > > in my application when there is update or addition of solr > > document > > > > > > happens. > > > > > > > > > > > > > > i am not sure event listeners of Update handler would fit the > > use > > > > > case. > > > > > > > > > > > > > > What do you say ? please share your ideas. > > > > > > > > > > > > > > Thanks, > > > > > > > Anil > > > > > > > > > > > > > > On 26 March 2016 at 10:26, Alexandre Rafalovitch < > > > arafalov@gmail.com > > > > > > > > > > > wrote: > > > > > > > > > > > > > >> Have you looked at UpdateRequestProcessors? > > > > > > >> > > > > > > >> Plus check solrconfig.xml for listeners on commit. > > > > > > >> > > > > > > >> Regards, > > > > > > >> Alex > > > > > > >> On 26 Mar 2016 3:54 pm, "Anil" wrote: > > > > > > >> > > > > > > >> > HI, > > > > > > >> > > > > > > > >> > Does solr support event (document create, update, delete) > > > > listeners > > > > > ? > > > > > > >> > > > > > > > >> > Thanks, > > > > > > >> > Anil > > > > > > >> > > > > > > > >> > > > > > > > > > > > > > > > > > > > > > --001a113ab5d27d49fb052ef6019f--