Hi Shai,

thank you very much for pointing me to the TaxonymMergeUtils-class, it does exactly what I need.

I had only included the maven artifact for facet support and therefore did not see the (very helpful) examples package before.

Best regards,
Christoph

Am 19.10.2011 21:02, schrieb Shai Erera:
Hi Christoph,

You can certainly do that, and there are a bunch of APIs that will help you
do that. We have a very high-level utility called TaxonomyMergeUtils, which
offers a bunch of merge() methods, each taking more parameters. Perhaps
start with the simplest one (the one taking 4 directories) and see if that
works for you. If you discover that you need more granular control over the
merge process, let me know and I can point you at more lower-level API. In
fact, TaxonomyMergeUtils is part of the examples and you should get access
to its source code, so you can see the steps you need to follow (at the
lower level) in its more detailed merge() method.

Shai

On Wed, Oct 19, 2011 at 9:54 AM, Christoph Kaser<lucene_l...@iconparc.de>wrote:

Hi all,

I am planing to change my existing lucene index to use the new facets
introduced in lucene 3.4.0.

Unfortunately, I could not find an answer to my question in the
documentation:

I create a relatively large index of 8 million books by dividing it into
several smaller groups of documents, creating indices for them, and then
joining them all together to one big index using |IndexWriter.addIndexes|.

This allows the work to be split among several threads or even computers.

I now would like to add faceted search capabilities to my index to allow
grouping by author and publisher, but I have the following problem:
Can I merge/add/join several taxonomy indexes as created by
LuceneTaxonmyWriter, and if so, how would I do that?

Thanks in advance for any help!

Best Regards,
Christoph




--
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-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org

Reply via email to