Return-Path: Delivered-To: apmail-lucene-solr-dev-archive@minotaur.apache.org Received: (qmail 88257 invoked from network); 12 Jan 2010 12:39:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 12 Jan 2010 12:39:20 -0000 Received: (qmail 55947 invoked by uid 500); 12 Jan 2010 12:39:17 -0000 Delivered-To: apmail-lucene-solr-dev-archive@lucene.apache.org Received: (qmail 55875 invoked by uid 500); 12 Jan 2010 12:39:17 -0000 Mailing-List: contact solr-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-dev@lucene.apache.org Delivered-To: mailing list solr-dev@lucene.apache.org Received: (qmail 55863 invoked by uid 99); 12 Jan 2010 12:39:17 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Jan 2010 12:39:17 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Jan 2010 12:39:15 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 60EC7234C045 for ; Tue, 12 Jan 2010 04:38:54 -0800 (PST) Message-ID: <434469846.180671263299934381.JavaMail.jira@brutus.apache.org> Date: Tue, 12 Jan 2010 12:38:54 +0000 (UTC) From: "Noble Paul (JIRA)" To: solr-dev@lucene.apache.org Subject: [jira] Commented: (SOLR-1708) Allowing import / update of a specific document using the data import handler In-Reply-To: <731744899.98481262876274504.JavaMail.jira@brutus.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/SOLR-1708?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12799179#action_12799179 ] Noble Paul commented on SOLR-1708: ---------------------------------- This does not seem to be a good way to solve your problem. you can pass your root-pk as params and use them in your queries directly ${dih.request.root-pk} We cannot change the core of DIH for this kind of problems > Allowing import / update of a specific document using the data import handler > ----------------------------------------------------------------------------- > > Key: SOLR-1708 > URL: https://issues.apache.org/jira/browse/SOLR-1708 > Project: Solr > Issue Type: New Feature > Components: contrib - DataImportHandler > Affects Versions: 1.4 > Reporter: Simon Lachinger > Attachments: 02-single-update.patch, 02-single-update.patch > > > There is the need that changes or new documents need to be added immediately to the Solr Index. This could easily done via the update-handler - however, when using the DataImportHandler it shouldn't be necessary to specify the data extraction for the the DataImportHandler and also for feeding it to into the update-handler. It should be centralized. > Having to run delta query, identifying the changes, for changes where the ID's of the updated documents are already known to the application is a rather costly (in terms of database load) way to solve this. > The attached patch allows to specify one or more query parameters for the delta-import command, named 'root-pk', which allow to specify the document(s) to be updated or added. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.