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 531C617645 for ; Thu, 2 Apr 2015 10:54:36 +0000 (UTC) Received: (qmail 32832 invoked by uid 500); 2 Apr 2015 10:54:34 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 32774 invoked by uid 500); 2 Apr 2015 10:54: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 32763 invoked by uid 99); 2 Apr 2015 10:54:34 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Apr 2015 10:54:34 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [93.104.200.132] (HELO mail.iconparc.de) (93.104.200.132) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Apr 2015 10:54:30 +0000 Received: from [IPv6:2001:a60:901c:0:6932:dc4:8b95:da71] (unknown [IPv6:2001:a60:901c:0:6932:dc4:8b95:da71]) (Authenticated sender: christoph.kaser@iconparc.de) by mail.iconparc.de (Postfix) with ESMTPSA id 98385CDA0F9 for ; Thu, 2 Apr 2015 12:54:07 +0200 (CEST) Message-ID: <551D1FCE.2040502@iconparc.de> Date: Thu, 02 Apr 2015 12:54:06 +0200 From: Christoph Kaser User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: java-user@lucene.apache.org Subject: Re: How to merge several Taxonomy indexes References: <5510360C.5050702@iconparc.de> In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org Hi Gimantha, why do you use a RAMDirectory? If your merged index fits into RAM completely, a MMapDirectory should offer almost the same performance. And if not, it is definitely the better choice. Regards Christoph Am 02.04.2015 um 12:38 schrieb Gimantha Bandara: > Hi All, > > I have successfully setup a merged indices and drilldown and usual search > operations work perfect. > But, I have a side question. If I selected RAMDirectory as the destination > Indices in merging, probably the jvm can go out of memory if the merged > indices are too big. Is there a way I can handle this issue? > > On Tue, Mar 24, 2015 at 12:18 PM, Gimantha Bandara > wrote: > >> Hi Christoph, >> >> My mistake. :) It does the exactly what i need. figured it out later.. >> Thanks a lot! >> >> On Tue, Mar 24, 2015 at 3:14 AM, Gimantha Bandara >> wrote: >> >>> Hi Christoph, >>> >>> I think TaxonomyMergeUtils is to merge a taxonomy directory and an index >>> together (Correct me if I am wrong). Can it be used to merge several >>> taxonomyDirectories together and create one taxonomy index? >>> >>> On Mon, Mar 23, 2015 at 9:19 PM, Christoph Kaser >>> wrote: >>>> Hi Gimantha, >>>> >>>> have a look at the class org.apache.lucene.facet.taxonomy.TaxonomyMergeUtils, >>>> which does exactly what you need. >>>> >>>> Best regards, >>>> Christoph >>>> >>>> Am 23.03.2015 um 15:44 schrieb Gimantha Bandara: >>>> >>>>> Hi all, >>>>> >>>>> Can anyone point me how to merge several taxonomy indexes? My >>>>> requirement >>>>> is as follows. I have several taxonomy indexes and normal document >>>>> indexes. I want to merge taxonomy indexes together and other document >>>>> indexes together and perform search on them. One part I have figured >>>>> out. >>>>> It is easy. To Merge document indexes, all I have to do is create a >>>>> MultiReader and pass it to IndexSearcher. But I am stuck at merging the >>>>> taxonomy indexes. Is there a way to merge taxonomy indexes? >>>>> >>>>> >>>> -- >>>> Dipl.-Inf. Christoph Kaser >>>> >>>> IconParc GmbH >>>> Sophienstrasse 1 >>>> 80333 München >>>> >>>> www.iconparc.de >>>> >>>> Tel +49 -89- 15 90 06 - 21 >>>> Fax +49 -89- 15 90 06 - 49 >>>> >>>> Geschäftsleitung: Dipl.-Ing. Roland Brückner, Dipl.-Inf. Sven Angerer. >>>> HRB >>>> 121830, Amtsgericht München >>>> >>>> >>>> >>>> --------------------------------------------------------------------- >>>> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org >>>> For additional commands, e-mail: java-user-help@lucene.apache.org >>>> >>>> >>> -- >>> Gimantha Bandara >>> Software Engineer >>> WSO2. Inc : http://wso2.com >>> Mobile : +94714961919 >>> >> -- >> Gimantha Bandara >> Software Engineer >> WSO2. Inc : http://wso2.com >> Mobile : +94714961919 >> > -- Dipl.-Inf. Christoph Kaser IconParc GmbH Sophienstrasse 1 80333 München www.iconparc.de Tel +49 -89- 15 90 06 - 21 Fax +49 -89- 15 90 06 - 49 Geschäftsleitung: Dipl.-Ing. Roland Brückner, Dipl.-Inf. Sven Angerer. HRB 121830, Amtsgericht München --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org