Return-Path: Delivered-To: apmail-jakarta-lucene-user-archive@apache.org Received: (qmail 49081 invoked from network); 3 Apr 2003 15:51:29 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 3 Apr 2003 15:51:29 -0000 Received: (qmail 24174 invoked by uid 97); 3 Apr 2003 15:53:19 -0000 Delivered-To: qmlist-jakarta-archive-lucene-user@nagoya.betaversion.org Received: (qmail 24167 invoked from network); 3 Apr 2003 15:53:19 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 3 Apr 2003 15:53:19 -0000 Received: (qmail 48713 invoked by uid 500); 3 Apr 2003 15:51: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 48662 invoked from network); 3 Apr 2003 15:51:23 -0000 Received: from mail.ideorlando.org (208.63.70.76) by daedalus.apache.org with SMTP; 3 Apr 2003 15:51:23 -0000 Received: by mail.ideorlando.org (Postfix, from userid 8) id 000F2367D6; Thu, 3 Apr 2003 15:51:58 +0000 (UTC) X-Scanned-By: AMaViS at a badly configured site. Received: from ROUTARDBW (unknown [208.62.52.106]) by mail.ideorlando.org (Postfix) with SMTP id CF872367CE for ; Thu, 3 Apr 2003 15:51:57 +0000 (UTC) From: "Rob Outar" To: "Lucene Users List" Subject: RE: Indexing Growth Date: Thu, 3 Apr 2003 10:52:48 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 In-Reply-To: <20030402163430.98108.qmail@web12701.mail.yahoo.com> X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Would there be any abnormal effects if after adding a document, you called optimize? I am still seeing a large growth from "setting" a field. When I set a field I: 1. Get the document 2. Remove the field. 3. Write the document to index 4. Get the document again. 5. Add the new field object. 6. Write the document to index. 7. Call optimize. >From writing out my steps it looks like I should write a set method instead of treating set as removeField() and addField(), I thought combining these two would equal set which it does, but it seems horribly inefficient. But in any case would the above cause in the index to grow from say 10.5 megs to 31 megs? Is there any efficient way to implement a set, for example if there was a field value pair of book/hamlet, but now we wanted to set book = none? Please keep in mind there could be multiple field names with book. So it is not simply a matter of removing the field book and then readding it. Anyhow let me know your thoughts. Thanks, Rob -----Original Message----- From: Otis Gospodnetic [mailto:otis_gospodnetic@yahoo.com] Sent: Wednesday, April 02, 2003 11:35 AM To: Lucene Users List Subject: RE: Indexing Growth Funny how this is the outcome of 90% of the problems people have with software - their own mistakes :) Regarding reindexing - no need for any explicit calls. When you add a document to the index it is indexed right away. You will have to detect index change (methods for that are there) and re-open the IndexSearcher in order to see newly added/indexed documents. Otis --- Rob Outar wrote: > I found the freakin problem, I am going to kill my co-worker when he > gets > in. He was removing a field and adding the same field back for each > document in the index in a piece of code I did not notice until > now!!!!!!!!!!!!!!!! He is so dead. I commented out that piece of > code, > queried to my hearts content and the index has not changed. Heck the > tool > is like super fast now. > > One last concern is about the re-indexing thing, when does that > occur? > optimize()? I am curious what method would cause a reindex. > > I want to thank all of you for your help, it was truly appreciated! > > Thanks, > > Rob > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: lucene-user-help@jakarta.apache.org > __________________________________________________ Do you Yahoo!? Yahoo! Tax Center - File online, calculators, forms, and more http://tax.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: lucene-user-help@jakarta.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: lucene-user-help@jakarta.apache.org