Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 9304 invoked from network); 1 Feb 2008 08:19:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Feb 2008 08:19:54 -0000 Received: (qmail 67051 invoked by uid 500); 1 Feb 2008 08:19:39 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 67021 invoked by uid 500); 1 Feb 2008 08:19:39 -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 67010 invoked by uid 99); 1 Feb 2008 08:19:39 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Feb 2008 00:19:39 -0800 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [72.14.220.159] (HELO fg-out-1718.google.com) (72.14.220.159) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Feb 2008 08:19:09 +0000 Received: by fg-out-1718.google.com with SMTP id d23so1047039fga.27 for ; Fri, 01 Feb 2008 00:19:14 -0800 (PST) Received: by 10.78.170.17 with SMTP id s17mr5562840hue.35.1201853953815; Fri, 01 Feb 2008 00:19:13 -0800 (PST) Received: from ?10.17.4.4? ( [71.174.108.74]) by mx.google.com with ESMTPS id t2sm14010107gve.3.2008.02.01.00.19.11 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 01 Feb 2008 00:19:12 -0800 (PST) In-Reply-To: <8D824EB9-719A-4250-BDCA-F794AB2B45D5@mikemccandless.com> References: <8837fb770801301642q23e2cc74vca270efe5c9ef9fd@mail.gmail.com> <8D4597E5-EBAC-4D30-974C-F79C057DC1CD@mikemccandless.com> <8837fb770801310928o22ad6bbanefbc5831ba951974@mail.gmail.com> <8D824EB9-719A-4250-BDCA-F794AB2B45D5@mikemccandless.com> Mime-Version: 1.0 (Apple Message framework v753) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <0E09057C-797B-47BF-B895-3642CA003A7D@mikemccandless.com> Cc: java-user@lucene.apache.org Content-Transfer-Encoding: 7bit From: Michael McCandless Subject: Re: appending field to an existing index Date: Fri, 1 Feb 2008 03:19:43 -0500 To: Michael McCandless X-Mailer: Apple Mail (2.753) X-Virus-Checked: Checked by ClamAV on apache.org Woops -- disregard this! Chris' approach will work. And, we don't need addParallelIndices! Mike Michael McCandless wrote: > > I don't think this will do the right thing in this case, because > addIndexes "appends" the documents from all indices together. > > Whereas John wants to "merge in" a new field into all docs in an > existing index. > > Really what we need is a new "addParallellIndices" method. I > think, conceptually, it's really not that hard to do ("it's just > software"), especially if the fields are completely orthogonal > (which is the case here, I think)? We would need a variant of > SegmentMerger, that instead of appending everything, would "splice" > the indices together, doc by doc. The posting lists should be > especially simple since each field is contiguous in the prx/frq files. > > Mike > > Chris Hostetter wrote: > >> >> : I have to keep one index though. Is there a way to reproduce an >> index from >> : an indexReader? >> >> asuming you have indexes that work in conjunction with eachther they >> way you want when using ParallelReader, you should (in theory) be >> able to >> use... >> >> ParallelReader r = ...; >> IndexWriter w = new IndexWRiter(...); >> w.addIndexes(new IndexReader[] { r }); >> w.close(); >> >> ...to "combine" those indexes into a single physical index. but i've >> never personally tried it. there may be quirks about >> ParallelReader that >> prevent this from working. >> >> >> -Hoss >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org >> For additional commands, e-mail: java-user-help@lucene.apache.org >> > --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org