Return-Path: Delivered-To: apmail-jakarta-lucene-user-archive@www.apache.org Received: (qmail 25694 invoked from network); 26 Jan 2004 17:27:45 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 26 Jan 2004 17:27:45 -0000 Received: (qmail 80086 invoked by uid 500); 26 Jan 2004 17:01:08 -0000 Delivered-To: apmail-jakarta-lucene-user-archive@jakarta.apache.org Received: (qmail 80058 invoked by uid 500); 26 Jan 2004 17:01:08 -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 80045 invoked from network); 26 Jan 2004 17:01:08 -0000 Received: from unknown (HELO mail.cataloom.com) (213.217.126.84) by daedalus.apache.org with SMTP; 26 Jan 2004 17:01:08 -0000 Received: from cataloom.com (delta1.cataloom.com [213.217.126.83]) by mail.cataloom.com (Postfix) with ESMTP id EE71B388 for ; Mon, 26 Jan 2004 18:01:08 +0100 (CET) Message-ID: <401547D5.80701@cataloom.com> Date: Mon, 26 Jan 2004 18:01:09 +0100 From: Hanjo Riege Organization: Cataloom AG User-Agent: Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:1.5) Gecko/20031007 X-Accept-Language: de-at, de, en-us, en MIME-Version: 1.0 To: Lucene Users List Subject: Re: example of using RAMDirectory References: <3B530EF12E388B408ECC3162BA8C00F427C75A@ny2526.corp.bloomberg.com> In-Reply-To: <3B530EF12E388B408ECC3162BA8C00F427C75A@ny2526.corp.bloomberg.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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 Hi, this works in my program: RAMDirectory ramDir = new RAMDirectory(); IndexWriter ram_writer_de = new IndexWriter(ramDir, new GermanAnalyzer(), true); // my method to fill the index fillIndex(ram_writer_de); ram_writer_de.optimize(); IndexWriter fs_writer_de = new IndexWriter(HOME_DIR + "de/", new GermanAnalyzer(), true); fs_writer_de.addIndexes(new Directory[]{ramDir}); fs_writer_de.close(); ram_writer_de.close(); regards Hanjo Chong, Herb schrieb: > this means creating two IndexWriter objects where one is using RAMDirectory and one using FSDirectory? then i use addIndexes(Directory [])? i can't find a mergeIndexes(). > > Herb.... > > -----Original Message----- > From: Otis Gospodnetic [mailto:otis_gospodnetic@yahoo.com] > Sent: Monday, January 26, 2004 11:17 AM > To: Lucene Users List > Subject: Re: example of using RAMDirectory > > > Use RAMDirectory and then user mergeIndexes(Directory[]) method. > > Otis > > > --------------------------------------------------------------------- > 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