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 5089A383D for ; Thu, 28 Apr 2011 12:39:49 +0000 (UTC) Received: (qmail 32594 invoked by uid 500); 28 Apr 2011 12:39:46 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 32534 invoked by uid 500); 28 Apr 2011 12:39:46 -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 32526 invoked by uid 99); 28 Apr 2011 12:39:46 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Apr 2011 12:39:46 +0000 X-ASF-Spam-Status: No, hits=3.1 required=5.0 tests=FREEMAIL_FROM,FREEMAIL_REPLY,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of erickerickson@gmail.com designates 209.85.216.48 as permitted sender) Received: from [209.85.216.48] (HELO mail-qw0-f48.google.com) (209.85.216.48) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Apr 2011 12:39:39 +0000 Received: by qwj9 with SMTP id 9so1753162qwj.35 for ; Thu, 28 Apr 2011 05:39:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=TekXqvwErY7jL85Ax7ZTuY5F6sJ/gfaU+1VE0tKkYBo=; b=eNlnefBi21kLZeCvVKyfRS+51DLGLP/zwbD0bbBQ0bR10oASku88euvarkMrBAfcgX 3BQvMCldQfMArsPBI7XK7y31HL4wKczVvjmryG9Q/jmVpfsu0yZZEJgACSYaL8nOJYcp WjtuESMf2dDf7BKrpn9ftsQbGkiC0acUyUecQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=ta31iVbokSjvO3VO/n1TDeYShHVjcdayIS0muGNnSEQHUzqfWC9EAhRwTJkWtOkenU yVC+D0OsBh/67ODL+7G+sTBEkejs53kvfUK1hlKya6o1d/q2IPn0E8941Jzh+4k83bMo /rhwgQ/j0BxravHJ1KSDTslSN2fyR1py/G9dE= MIME-Version: 1.0 Received: by 10.229.105.153 with SMTP id t25mr2773053qco.123.1303994359158; Thu, 28 Apr 2011 05:39:19 -0700 (PDT) Received: by 10.229.245.81 with HTTP; Thu, 28 Apr 2011 05:39:19 -0700 (PDT) In-Reply-To: <1303988345782-2874171.post@n3.nabble.com> References: <1303988345782-2874171.post@n3.nabble.com> Date: Thu, 28 Apr 2011 08:39:19 -0400 Message-ID: Subject: Re: how to update database record after indexing From: Erick Erickson To: solr-user@lucene.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org I don't think you can do this through DIH, you'll probably have to write a separate process that queries the Solr index and updates your table. You'll have to be a bit cautious that you coordinate the commits, that is wait for the DIH to complete and commit before running your separate db update process. Best Erick On Thu, Apr 28, 2011 at 6:59 AM, vrparekh@gmail.com wrote: > Hello, > > i am using dataimporthandler to import data from sql server database. > > my requirement is when solr completed indexing on particular database record > i want to update that record in database > > or after indexing all records if i can get all ids and update all records > > how to achieve same ? > > Thanks > > Vishal Parekh > > -- > View this message in context: http://lucene.472066.n3.nabble.com/how-to-update-database-record-after-indexing-tp2874171p2874171.html > Sent from the Solr - User mailing list archive at Nabble.com. >