Return-Path: Delivered-To: apmail-jakarta-lucene-user-archive@www.apache.org Received: (qmail 25655 invoked from network); 13 Feb 2004 18:10:12 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 13 Feb 2004 18:10:12 -0000 Received: (qmail 32033 invoked by uid 500); 13 Feb 2004 18:09:59 -0000 Delivered-To: apmail-jakarta-lucene-user-archive@jakarta.apache.org Received: (qmail 31921 invoked by uid 500); 13 Feb 2004 18:09:58 -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 31906 invoked from network); 13 Feb 2004 18:09:58 -0000 Received: from unknown (HELO savinien.cirano.qc.ca) (207.162.57.133) by daedalus.apache.org with SMTP; 13 Feb 2004 18:09:58 -0000 Received: from savinien.cirano.qc.ca (localhost.localdomain [127.0.0.1]) by savinien.cirano.qc.ca (8.12.8/8.12.8) with ESMTP id i1DIA1sn005808 for ; Fri, 13 Feb 2004 13:10:01 -0500 Received: from localhost (vauchers@localhost) by savinien.cirano.qc.ca (8.12.8/8.12.8/Submit) with ESMTP id i1DIA1qQ005804 for ; Fri, 13 Feb 2004 13:10:01 -0500 X-Authentication-Warning: savinien.cirano.qc.ca: vauchers owned process doing -bs Date: Fri, 13 Feb 2004 13:10:01 -0500 (EST) From: Stephane James Vaucher To: Lucene Users List Subject: Re: Incrementally updating and monitoring the index In-Reply-To: <200402131710.39861.lucene@nitwit.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N On Fri, 13 Feb 2004 lucene@nitwit.de wrote: > Hi! > > Can Lucene incrementally update its index (i.e. balancing will a list of docs > and removing those that are no more found)? Incremental updates (additions and deletions) are possible, but I'm not sure if I understand your question. Lucene holds its own instances of documents structured in text fields (not going into details here). There lucene documents are created and updated programatically, not automatically because lucene does not keep tabs on external documents. > I'd like to monitor the index for certain queries/terms, i.e. I want to be > notified if there are (new) hits for a list of terms each time after I add a > document to the index - continously. > > Is this possibe? The index will contain several hundrets of thousands of > documents and will be frequently accessed concurrently. Very possible, before adding a document, you can check (with the judicious use of an id) if it has already been added. If it hasn't, do your notification, but this requires programming. For concurrent write access, there is a lock, do you might want to use a singleton responsible for adding documents. > > TIA > Timo > HTH, sv --------------------------------------------------------------------- To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: lucene-user-help@jakarta.apache.org