Return-Path: X-Original-To: apmail-lucene-java-user-archive@www.apache.org Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A394BD4E3 for ; Thu, 20 Dec 2012 09:40:36 +0000 (UTC) Received: (qmail 45490 invoked by uid 500); 20 Dec 2012 09:40:34 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 45235 invoked by uid 500); 20 Dec 2012 09:40:34 -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 45204 invoked by uid 99); 20 Dec 2012 09:40:33 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Dec 2012 09:40:32 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of ian.lea@gmail.com designates 74.125.82.169 as permitted sender) Received: from [74.125.82.169] (HELO mail-we0-f169.google.com) (74.125.82.169) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Dec 2012 09:40:25 +0000 Received: by mail-we0-f169.google.com with SMTP id t49so1465347wey.14 for ; Thu, 20 Dec 2012 01:40:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=QwWLE3XLSrnEflryCtmUp2OsduDEbrlVR/xpVPfZ2/g=; b=bVEN1R+kksAIMYflhS3IiUFmMpxnnpQ7Jc863jEvRmL0GKWwNYIQElmlGanCMC8vCz a+e2oirvy5KfAiRgn5nmkz6B1ET07fE+9/3K1hWV29p56ItW4qCfJk1NbKSiBulY+/jc qFZQKTBX4xml8AoSQH/fi97tf2vZz0BTI2HlesomT83U09xWmYwzmrlvTotRbI+eJCan UOI6sorviJyWtv4AzrjiJO6qPMg3MhPVb/+GhHtybACdJmEeXh8e6mUFWTSbpJrAWUUj yTYx0HpafSbm0qqSz1JbY/+xv2bTTNMDwGCHtxXuGWYcQsNm4nMe4JQbanr9GXPTQVqd jCcg== Received: by 10.180.101.104 with SMTP id ff8mr16155133wib.11.1355996405146; Thu, 20 Dec 2012 01:40:05 -0800 (PST) MIME-Version: 1.0 Received: by 10.194.57.11 with HTTP; Thu, 20 Dec 2012 01:39:44 -0800 (PST) In-Reply-To: References: From: Ian Lea Date: Thu, 20 Dec 2012 09:39:44 +0000 Message-ID: Subject: Re: how to forcemerge a index library with many segmens to another dir? To: java-user@lucene.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org So you want a copy of the merged index on another disk? You could just copy it, before or after the merge, your choice. Or create the new index with an IndexWriter and call one of the addIndexes() methods. From the javadocs they sound to have different merge effects. Try it out and see what happens. -- Ian. On Thu, Dec 20, 2012 at 1:24 AM, Hu Jing wrote: > Now, i have a index library with 100 segments. > Using forcemerge function can merge all segments into a segment. > But I also want the newly generated index library which is written in > another disk. > Doing this just for Reading and writing disk separately. > How to implement this? > Thanks very much. --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org