Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 40529 invoked from network); 28 Nov 2005 07:38:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 28 Nov 2005 07:38:14 -0000 Received: (qmail 30981 invoked by uid 500); 28 Nov 2005 07:38:07 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 30957 invoked by uid 500); 28 Nov 2005 07:38:06 -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 30946 invoked by uid 99); 28 Nov 2005 07:38:06 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 27 Nov 2005 23:38:06 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of jarraa@gmail.com designates 64.233.162.194 as permitted sender) Received: from [64.233.162.194] (HELO zproxy.gmail.com) (64.233.162.194) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 27 Nov 2005 23:39:37 -0800 Received: by zproxy.gmail.com with SMTP id i1so812289nzh for ; Sun, 27 Nov 2005 23:37:45 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=FeL6+r5qmHdBe0QO8AhRjPTO73rMXxCOKC8Q4HeSXM/fZRsFpkNWHSTCmzDJkPtN5w8zG9MfWeYJsZJqt6siN/MyzMqujca8NwTuigyiR7cnfMno/vuLwxYaxdCGreUeJVp9sHWEmOnq0G5WNptD+nZaz94JL9npy2ablMp4PLI= Received: by 10.65.97.2 with SMTP id z2mr1488408qbl; Sun, 27 Nov 2005 23:37:45 -0800 (PST) Received: by 10.65.95.6 with HTTP; Sun, 27 Nov 2005 23:37:44 -0800 (PST) Message-ID: <4bd3e1480511272337h5d669f45y97e1078d88332bde@mail.gmail.com> Date: Mon, 28 Nov 2005 00:37:44 -0700 From: Assad Jarrahian To: java-user@lucene.apache.org Subject: Lucene and DB interactions MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I have some specific questions (Using a pure java solution with PostgreSQL). Any comments/info would be much appreciated. 1) I build an index. Then as the db gets more "documents" inserted into it, it needs to be added to the index. I was thinking of checking for X documents (will store in a vector or something) or Y time and then updating it by opening an IndexWriter on the index. 1.a) Has anybody approached this problem, and if so, how did they do it ? 1.b) For IndexSearcher, I know I have to reinstantiate it (open it), but how do I do that while still maintaining current search requests? 2) From time to time I rebuild the index (in FS, while the Searcher is reading the current one in RAM). And then I swap out the one in RAM. 2.a) Has anybody done this in an automated efficient way? If so, how? Much thanks in advance. -assad --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org