Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 8554 invoked from network); 2 Jun 2006 16:31:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 2 Jun 2006 16:31:23 -0000 Received: (qmail 58944 invoked by uid 500); 2 Jun 2006 16:31:14 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 58861 invoked by uid 500); 2 Jun 2006 16:31:14 -0000 Mailing-List: contact java-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@lucene.apache.org Delivered-To: mailing list java-dev@lucene.apache.org Received: (qmail 58807 invoked by uid 99); 2 Jun 2006 16:31:14 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Jun 2006 09:31:14 -0700 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 yseeley@gmail.com designates 64.233.166.179 as permitted sender) Received: from [64.233.166.179] (HELO py-out-1112.google.com) (64.233.166.179) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Jun 2006 09:31:13 -0700 Received: by py-out-1112.google.com with SMTP id c30so662707pyc for ; Fri, 02 Jun 2006 09:30:52 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=oM2C0t4U8bTRNoJbuLtZnoixzJc+27zQa3dhFN6qPfkMqpX3bbO8uR1Z0u8O0IxJUYw0HRw+dGH6Mv7sxu0J3ssI23YsHV1xKn2yGzm6VwlXN7ZQe7qwfq1cqfIOyQwsDP1bGbEG/tbYdW57nAVJ4GkinrwewXQalYf5We3Vpic= Received: by 10.35.78.13 with SMTP id f13mr2701479pyl; Fri, 02 Jun 2006 09:30:52 -0700 (PDT) Received: by 10.35.11.9 with HTTP; Fri, 2 Jun 2006 09:30:52 -0700 (PDT) Message-ID: Date: Fri, 2 Jun 2006 12:30:52 -0400 From: "Yonik Seeley" To: java-dev@lucene.apache.org, simon.willnauer@gmail.com Subject: Re: GData Server - Lucene storage In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On 6/2/06, Simon Willnauer wrote: > The problem here is that there is no action comparable to commit. The entry > comes in and will be added to the storage. The delete will be queued but > when should the delete operation start. Waiting for the writer to idle?! We > could do it that way. but if a search request comes in the old entries will > be found an can be retrieved from the storage. In that case I have to hold > the already added but not yet deleted entries in a storage cache to prefent > the storage from retrieving outdated and updated entries because they have > the same ID. > > You use multiple indexSearcher instances to serve searches right? There is normally only a single searcher open at a time (except when warming). A main "registered" searcher handles all live requests. When a new searcher is opened, it is warmed up (requests run against it in the background, caches pre-populated, etc) and then it is registered. > so when > all the deletes are done you have to reopen all indexsearchers again right?! Just one. > So this would happen quiet often due to updates and inserts. > Hmm it is more and more a bad idea to use a lucene index as a storage. > Rather go straight to a Database. Yes, if you need to be able to *instantly* retrieve (but not search) updates you just inserted, and you need to support a high volume of updates and queries. You could also do that in-memory by supporting retrieval by id from your "batch" of documents not yet "committed" in Lucene. Only downside is it's volatile. -Yonik http://incubator.apache.org/solr Solr, the open-source Lucene search server --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org