Return-Path: Delivered-To: apmail-jakarta-lucene-user-archive@www.apache.org Received: (qmail 71907 invoked from network); 8 Dec 2004 22:54:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 8 Dec 2004 22:54:30 -0000 Received: (qmail 99721 invoked by uid 500); 8 Dec 2004 22:54:25 -0000 Delivered-To: apmail-jakarta-lucene-user-archive@jakarta.apache.org Received: (qmail 99702 invoked by uid 500); 8 Dec 2004 22:54:25 -0000 Mailing-List: contact lucene-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Lucene Users List" Reply-To: "Lucene Users List" Delivered-To: mailing list lucene-user@jakarta.apache.org Received: (qmail 99689 invoked by uid 99); 8 Dec 2004 22:54:25 -0000 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=FORGED_RCVD_HELO,HTML_40_50,HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from host-64-65-202-3.pro.choiceone.net (HELO contextmedia.com) (64.65.202.3) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 08 Dec 2004 14:54:24 -0800 Received: from ppeddi ([192.168.1.48]) by contextmedia.com ; Wed, 08 Dec 2004 17:53:27 -0500 Message-ID: <185701c4dd78$ba35d280$aa87a8c0@ppeddi> From: "Praveen Peddi" To: "lucenelist" Subject: partial updating of lucene Date: Wed, 8 Dec 2004 17:53:26 -0500 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_1854_01C4DD4E.D13278F0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-Rcpt-To: X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N ------=_NextPart_000_1854_01C4DD4E.D13278F0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi all, I have a question about updating the lucene document. I know that there = is no API to do that now. So this is what I am doing in order to update = the document with the field "title". 1) Get the document from lucene index 2) Remove a field called "title" and add the same field with a modified = value 3) Remove the docment (based on one of our field) using Reader and then = close the Reader. 4) Add the document that is obtained in 1 and modified in 2. I am not sure if this is the right way of doing it but I am having = problems searching for that document after updating it. The problem is = only with the un stored fields. For example, I search as "description:boy" where description is a = unstored, indexed, tokenized field in the document. I find 1 document. = Now I update the document the document's title as descripbed above and = repeat the same search "description:boy" and now I don't find any = results. I have not touched the field "description" at all. I just = updated the field title. Is this an expected behaviour? If not, is it a bug. If I change the field description as stored, indexed and tokenized, the = search works fine before and after updating. Praveen **************************************************************=20 Praveen Peddi Sr Software Engg, Context Media, Inc.=20 email:ppeddi@contextmedia.com=20 Tel: 401.854.3475=20 Fax: 401.861.3596=20 web: http://www.contextmedia.com=20 **************************************************************=20 Context Media- "The Leader in Enterprise Content Integration"=20 ------=_NextPart_000_1854_01C4DD4E.D13278F0--