lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shai Erera <ser...@gmail.com>
Subject Re: Merging several taxonomy indexes for faceted search
Date Wed, 19 Oct 2011 19:02:38 GMT
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_list@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
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message