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 10BB9DB0C for ; Tue, 4 Sep 2012 10:03:53 +0000 (UTC) Received: (qmail 13978 invoked by uid 500); 4 Sep 2012 10:03:49 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 13590 invoked by uid 500); 4 Sep 2012 10:03:49 -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 13563 invoked by uid 99); 4 Sep 2012 10:03:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Sep 2012 10:03:48 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FSL_RCVD_USER,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of kissuenow@gmail.com designates 209.85.212.170 as permitted sender) Received: from [209.85.212.170] (HELO mail-wi0-f170.google.com) (209.85.212.170) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Sep 2012 10:03:43 +0000 Received: by wibhq12 with SMTP id hq12so3655060wib.5 for ; Tue, 04 Sep 2012 03:03:22 -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 :content-type; bh=Jdymf9bE7hCmnHgyJkNNpkIJ47SrzIYhdFU7B3+jwB0=; b=TOhtAMip2YqXfY5aQ5SaHdAIscg0ftPmDPQgCp/GdU0FuN5TWW56oXNnDNxL3pOez1 F77MJKvpywkyJuMuaOU6rSnLjRb7A2vDZ9f7XVRH6HLBUyHKVa+PDgLozgPglvcENGd+ 04SIqS08edTfz7ZT+cngyc7m7RfctkAyvtf7F3gaItKxRLw/faFvmaKqNwPF3gL7L32f JpYG7kWwrfkbNCdpPi+vBiFsWraX0ub3Gbu6HFGkqZb6Av1e/0fr0ihZmQ7BYweLFVkV 6SLPN/6vzXWa1UwrufnGdZDCwJ0qnjWcdIpj1to04X7P+yq43hrWt1f8ctaPt/7xWwb6 VxUA== MIME-Version: 1.0 Received: by 10.216.195.229 with SMTP id p79mr10914443wen.109.1346753002248; Tue, 04 Sep 2012 03:03:22 -0700 (PDT) Received: by 10.194.92.242 with HTTP; Tue, 4 Sep 2012 03:03:22 -0700 (PDT) In-Reply-To: References: Date: Tue, 4 Sep 2012 11:03:22 +0100 Message-ID: Subject: Re: StreamingUpdateSolrServer - Failure during indexing From: Kissue Kissue To: solr-user@lucene.apache.org Content-Type: multipart/alternative; boundary=0016e6d775974c9bfd04c8dd5e44 X-Virus-Checked: Checked by ClamAV on apache.org --0016e6d775974c9bfd04c8dd5e44 Content-Type: text/plain; charset=ISO-8859-1 Hi Lance, As far as i can see, one document failing does not fail the entire update. >From my logs i can see the error logged in the logs but indexing just continues to the next document. This happens with the StreamingUpdateSolrServer which is multithreaded. Thanks. On Tue, Jun 19, 2012 at 9:58 AM, Lance Norskog wrote: > When one document fails, the entire update fails, right? Is there now > a mode where successful documents are added and failed docs are > dropped? > > If you want to know if a document is in the index, search for it! > There is no other guaranteed way. > > On Sun, Jun 17, 2012 at 3:14 PM, Jack Krupansky > wrote: > > You could instantiate an anonymous instance of StreamingUpdateSolrServer > > that has a "handleError" method that then parses the exception message to > > get the request URI. If there isn't enough information there, you could > add > > a dummy request option to your original request that was a document > > identifier of your own. > > > > Pseudo code: > > > > StreamingUpdateSolrServer myServer = new > StreamingUpdateSolrServer(...){ > > void handleError( Throwable ex ){ > > super.handleError(ex); > > // extract text from ex.getMessage() > > } > > }; > > > > Included in the message text is "request: " followed by the URI for the > HTTP > > method, which presumably has the request options (unless they were > encoded > > in the body of the request as multipart form data.) > > > > -- Jack Krupansky > > > > -----Original Message----- From: Kissue Kissue > > Sent: Sunday, June 17, 2012 7:40 AM > > To: solr-user@lucene.apache.org > > Subject: StreamingUpdateSolrServer - Failure during indexing > > > > > > Hi, > > > > Using the StreamingUpdateSolrServer, does anybody know how i can get the > > list of documents that failed during indexing so maybe i can index them > > later? Is it possible? I am using Solr 3.5 with SolrJ. > > > > Thanks. > > > > -- > Lance Norskog > goksron@gmail.com > --0016e6d775974c9bfd04c8dd5e44--