Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 68374 invoked from network); 14 May 2007 13:35:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 May 2007 13:35:10 -0000 Received: (qmail 86692 invoked by uid 500); 14 May 2007 13:35:08 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 86640 invoked by uid 500); 14 May 2007 13:35:08 -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 86628 invoked by uid 99); 14 May 2007 13:35:08 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 May 2007 06:35:08 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of erickerickson@gmail.com designates 209.85.134.184 as permitted sender) Received: from [209.85.134.184] (HELO mu-out-0910.google.com) (209.85.134.184) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 May 2007 06:35:01 -0700 Received: by mu-out-0910.google.com with SMTP id i10so948024mue for ; Mon, 14 May 2007 06:34:39 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=cGVi0JMftlEKYqQ4tUIZphksbSlIX4UJx0DycWOFJux+EAwFc7GNzVeiK09h9ft5yGCYza2tcbLzqOXtQbSD1KU1cOdJbPmRZcedRqf+yoKGrlrscHPDTRQXmebObSpaoBOKZlH5JN8QjTF0MHdUIO7pl5lUzkMaBrSA/irLcTA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=f+/6LPSNwzVHlwLJCa4kVz0TLIsVNC5Gwm9iUq0W3obHrqFecjgZGe6Ab2pMMhgGCwKgD5xgPsgVVZk4vcS+10Od47aj5SYAx0fZ0pMICAVPbUtFXAz4bYrItzcEr5IjB0XDxnnR5veqBdOc380GeUEmIY4vewcS7ymosUltLgg= Received: by 10.82.148.7 with SMTP id v7mr1733993bud.1179149679595; Mon, 14 May 2007 06:34:39 -0700 (PDT) Received: by 10.82.167.12 with HTTP; Mon, 14 May 2007 06:34:39 -0700 (PDT) Message-ID: <359a92830705140634v17bf205fv4290b7e97ee5f6bc@mail.gmail.com> Date: Mon, 14 May 2007 09:34:39 -0400 From: "Erick Erickson" To: java-user@lucene.apache.org Subject: Re: FSDirectory and merge indexes In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_60258_3053559.1179149679547" References: X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_60258_3053559.1179149679547 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline FSDirectory fsd1 = FSDirectory.getDirectory("e:/Index1"); FSDirectory fsd2 = FSDirectory.getDirectory("e:/Index2"); FSDirectory fsd3 = FSDirectory.getDirectory("e:/Index3"); FSDirectory fsd4 = FSDirectory.getDirectory("e:/Index4"); FSDirectory fsd5 = FSDirectory.getDirectory("e:/Index5"); FSDirectory fsd6 = FSDirectory.getDirectory("e:/Index6"); IndexWriter writer = new IndexWriter(blah blah blah); writer.addIndexes(new Directory[] { fsd1, fsd2, fsd3, fsd4, fsd5, fsd6 }); On 5/14/07, Gilbert Groenendijk wrote: > > Hi, > > > > Currently I'm trying to create a temporary index on my filesystem and > after > that merge it with an existing index. I've tried to use > 'addIndexesNoOptimize' but I need to pass in an array of directories. How > do > I create that array when I'm using FSDirectory.getDirectory. it gives me > an > error like 'addIndexesNoOptimize([o:FSDirectory]). ' Illegal argument. > > -- > Gilbert Groenendijk > __________________________________________________ > ------=_Part_60258_3053559.1179149679547--