Return-Path: Delivered-To: apmail-jakarta-lucene-user-archive@www.apache.org Received: (qmail 34665 invoked from network); 24 Nov 2004 00:41:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 24 Nov 2004 00:41:53 -0000 Received: (qmail 43869 invoked by uid 500); 24 Nov 2004 00:41:44 -0000 Delivered-To: apmail-jakarta-lucene-user-archive@jakarta.apache.org Received: (qmail 43843 invoked by uid 500); 24 Nov 2004 00:41:44 -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 43830 invoked by uid 99); 24 Nov 2004 00:41:43 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of appler@gmail.com designates 64.233.170.203 as permitted sender) Received: from [64.233.170.203] (HELO rproxy.gmail.com) (64.233.170.203) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 23 Nov 2004 16:41:41 -0800 Received: by rproxy.gmail.com with SMTP id 34so16030rns for ; Tue, 23 Nov 2004 16:41:37 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=pU6daBe3OX3u0vvkh+IWV8oYs412vK1n0yLtEizfE+/3H/nWeM/shi9MqYEiMvP6ydmvWV0k2G60jVe8GKt8ywb73ShvFDRVCrjmw2W2RSdU/cirqq379Bq3TFIlT+eviPuLkem9aAOyTx9vsnFmp5mYnlMuFZ6pWOchb2UY5T4= Received: by 10.38.8.74 with SMTP id 74mr71264rnh; Tue, 23 Nov 2004 16:41:37 -0800 (PST) Received: by 10.38.206.64 with HTTP; Tue, 23 Nov 2004 16:41:37 -0800 (PST) Message-ID: <48b7084904112316415afe133f@mail.gmail.com> Date: Wed, 24 Nov 2004 09:41:37 +0900 From: Cheolgoo Kang Reply-To: Cheolgoo Kang To: Lucene Users List , Paul Subject: Re: retrieving added document In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N On Tue, 23 Nov 2004 22:47:21 +0100, Paul wrote: > Hi, > I'm creating a document and adding it with a writer to the index. For > some reason I need to add data to this specific document later on > (minutes, not hours or days). Is it possible to retrieve it and add > additonal data? No, you cannot add additional data (or modify) to previously added document. It's easy to delete the old one from the index and add a new document with additional data included. > I found the document(int n) - method within the IndexReader (btw: the > description makes no sense for me: "Returns the stored fields of the > nth Document in this index." - but it returns a Document and not a > list of fields..) but where do I get that number from? (and the > numbers change, I know..) Usually you search using IndexSearcher and it's resulting Hits has the doc-id (the number) in that index. And the Document contains the list of (stored) fields. > > thanks for any help > > Paul > > --------------------------------------------------------------------- > To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: lucene-user-help@jakarta.apache.org > > -- Cheolgoo, Kang --------------------------------------------------------------------- To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: lucene-user-help@jakarta.apache.org