Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 25770 invoked from network); 6 Nov 2009 08:42:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 6 Nov 2009 08:42:45 -0000 Received: (qmail 90918 invoked by uid 500); 6 Nov 2009 08:42:43 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 90856 invoked by uid 500); 6 Nov 2009 08:42:43 -0000 Mailing-List: contact java-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@lucene.apache.org Delivered-To: mailing list java-user@lucene.apache.org Received: (qmail 90846 invoked by uid 99); 6 Nov 2009 08:42:42 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Nov 2009 08:42:42 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [202.86.5.94] (HELO smtp107.mail.in.yahoo.com) (202.86.5.94) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 06 Nov 2009 08:42:31 +0000 Received: (qmail 80866 invoked from network); 6 Nov 2009 08:42:08 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.co.in; h=Received:X-Yahoo-SMTP:X-YMail-OSG:X-Yahoo-Newman-Property:Message-ID:From:To:References:Subject:Date:MIME-Version:Content-Type:Content-Transfer-Encoding:X-Priority:X-MSMail-Priority:X-Mailer:X-MimeOLE; b=wbzYAC8873pAuI9ypSvyZ5gRqOOxOZnivmWR1qqn+sYoJheTq1HrQVhA+DlQLJLopcyJwhrpGwa1aW1qlnVf77OvxdluP25ufWidyQxjVQgxLArmUINEgp+ogSYcej5E0Gb/TqzYOMKCFP8pm+8ynECTR1eWIgvQF/bOyPkVo0c= ; Received: from (emailgane@203.98.194.130 with login) by smtp107.mail.in.yahoo.com with SMTP; 06 Nov 2009 14:12:08 +0530 IST X-Yahoo-SMTP: JObyHkuswBBrNSLZp.Ycd7Boqpr_GQ-- X-YMail-OSG: .AA9eMEVM1mXV0cGgbFlcA8iEEvx3b3x6B5kNXA47r35Ol0LIf3PAKOy3VfUl88Jlx1.HsuJe7s9TPaKJ8yzn.LWhBSviG7NE9sg0x6.F3DKLytG8Dmgx7vJE0Cz7Z8zMy4xtNTQpspkzZ5JMJ4G3tjvX7yVTf9NKxsYh.tzItftDfm6CQeyC30CXBoRh2NFCkrwxBqmX5GmOi1XUE.OUO.CL_gnZyH2qJgRzi.ewGA- X-Yahoo-Newman-Property: ymail-3 Message-ID: <003d01ca5ebd$06787d30$710bc30a@sv.us.sonicwall.com> From: "Ganesh" To: References: <000b01ca594c$246b0360$710bc30a@sv.us.sonicwall.com> <005301ca5988$74a16900$710bc30a@sv.us.sonicwall.com> <00e401ca5c7a$22970ad0$710bc30a@sv.us.sonicwall.com> <8c4e68610911030354g1537699eoc3636c35c66e5100@mail.gmail.com> Subject: Re: UpdateDocument failed Date: Fri, 6 Nov 2009 14:12:06 +0530 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.3138 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138 X-Virus-Checked: Checked by ClamAV on apache.org Thanks Ian. There are some issues with my code.=20 I am using almost 40 fields only two fields, requires update one will be = updated by background thread and other by the User. I am using Lucene as = my database. I am reopening reader at constant interval. The problem is = when background thread and the User updates the same record in the same = interval, then i am loosing one update.=20 Is there any way to resolve this issue using Lucene. I don't think 2.9 = supports payload per document, which could be updated independently to = the document.=20 Regards Ganesh ----- Original Message -----=20 From: "Ian Lea" To: Sent: Tuesday, November 03, 2009 5:24 PM Subject: Re: UpdateDocument failed In my experience the most frequent cause is not getting an exact match on terms. Are you sure that you have an exact match i.e. you're not analyzing "MyUniqueId" to "myuniqueid"? How are you determining that the call was successful? You could try running a query first to verify that a doc you think should be present is really there. Any exceptions being missed anywhere? All writers closed when they should be? No index corruptions (CheckIndex)? -- Ian. On Tue, Nov 3, 2009 at 11:38 AM, Ganesh wrote: > Any leads in this issue would be greatly helpful. > > My logs shows me the updateDocument call was successful but the status = of the document was not updated. Using Luke, I could see the same = document (before update) is added at the end. Its document Id shows it = as last record but it was inserted and updated quite in the middle. I am = not able to get the scenario. > > Regards > Ganesh > > > ----- Original Message ----- > From: "Ganesh" > To: > Sent: Friday, October 30, 2009 11:13 PM > Subject: Re: UpdateDocument failed > > > Any hint or lead on this issue. What else to be taken care? > > ----- Original Message ----- > From: "Ganesh" > To: > Sent: Friday, October 30, 2009 4:01 PM > Subject: UpdateDocument failed > > > Hello all, > > I am using Lucene 2.4.1. I am adding and updating the documents = frequently. At constant interval, I am reopening the index and warming = it. I am having multiple thread, all are sharing a single writer and = reader. Commit and reopening the reader is done in separate thread at = regular interval. > > In one of production server, I could see the updates are getting = failed for some records. When i copy the same data and run it in my end, = updates are doing fine. In production system, Even If i do a reindex, = sometimes all the updates are successful and sometimes not. Its highly = unpredictable. All my documents have a unique id and using that updates = are done. > > I require some information what are the criteria to be taken care = while doing UpdateDocument? Is there any limitation of not to update = while doing commit? > > Please update me as it is very urgent. > > Regards > Ganesh > > > Send instant messages to your online friends = http://in.messenger.yahoo.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org > For additional commands, e-mail: java-user-help@lucene.apache.org > > Send instant messages to your online friends = http://in.messenger.yahoo.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org > For additional commands, e-mail: java-user-help@lucene.apache.org > > Send instant messages to your online friends = http://in.messenger.yahoo.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org > For additional commands, e-mail: java-user-help@lucene.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org Send instant messages to your online friends http://in.messenger.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org