You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@nutch.apache.org by Alexander Aristov <al...@gmail.com> on 2008/08/02 10:51:52 UTC
index splitting possible?
Hi
I am planning to implement distributed searching using Nutch and hence I
will need a few machines with built indexes.
First I want to build index running it on a Hadoop cluster. One big index at
once.
Is it possible to split up the index later (and all necessary segments) to
upload them to different servers. Also can I set size of a part of each
index?
Also I use merge segemnts and merge index routines. Are they necessary If I
want to have split index?
--
Best Regards
Alexander Aristov
Re: index splitting possible?
Posted by Andrzej Bialecki <ab...@getopt.org>.
Alexander Aristov wrote:
> Good. Last question. Does Nutch guaranty that it will create new index for
> each separate segment? May it happen that it create one index for two
> segments or vise-versa.
It doesn't "happen" by itself, it's a question of how you invoke the
indexing tool. So the answer is yes or no - both are possible with
different command-line options.
--
Best regards,
Andrzej Bialecki <><
___. ___ ___ ___ _ _ __________________________________
[__ || __|__/|__||\/| Information Retrieval, Semantic Web
___|||__|| \| || | Embedded Unix, System Integration
http://www.sigram.com Contact: info at sigram dot com
Re: index splitting possible?
Posted by Alexander Aristov <al...@gmail.com>.
Good. Last question. Does Nutch guaranty that it will create new index for
each separate segment? May it happen that it create one index for two
segments or vise-versa.
Alexander
2008/8/4 Andrzej Bialecki <ab...@getopt.org>
> Alexander Aristov wrote:
>
>> Hi
>>
>> Thank you for Katta
>>
>> But are there any built-in Nutch functionality which can do this stuff.
>> What
>> I am looking forward is to make distributed search as I am planning to
>> build
>> an index of quite big size and so it will be not possible to keep it on
>> one
>> server.
>>
>> What are best practices for doing this?
>>
>
> There is no built-in single tool in Nutch to do this. Common practice is to
> create indexes per segment (without merging them), and deploy pairs of
> segment plus its index to the search servers, and then doing the index
> merging there, on each search server. Whenever you add new segments or
> remove old ones, you perform a merge of the new set of active indexes on
> each search server.
>
> This way it's easy to phase out outdated segments and their indexes, and
> adding new segments, while still using a merged index on each search server
> for maximum performance.
>
> PS. it's possible to implement a low-level Lucene tool to split indexes,
> using FilteredIndexReader and IndexWriter.addIndexes(...). But it's not that
> relevant if you use the strategy that I explained above.
>
>
> --
> Best regards,
> Andrzej Bialecki <><
> ___. ___ ___ ___ _ _ __________________________________
> [__ || __|__/|__||\/| Information Retrieval, Semantic Web
> ___|||__|| \| || | Embedded Unix, System Integration
> http://www.sigram.com Contact: info at sigram dot com
>
>
--
Best Regards
Alexander Aristov
Re: index splitting possible?
Posted by Andrzej Bialecki <ab...@getopt.org>.
Alexander Aristov wrote:
> Hi
>
> Thank you for Katta
>
> But are there any built-in Nutch functionality which can do this stuff. What
> I am looking forward is to make distributed search as I am planning to build
> an index of quite big size and so it will be not possible to keep it on one
> server.
>
> What are best practices for doing this?
There is no built-in single tool in Nutch to do this. Common practice is
to create indexes per segment (without merging them), and deploy pairs
of segment plus its index to the search servers, and then doing the
index merging there, on each search server. Whenever you add new
segments or remove old ones, you perform a merge of the new set of
active indexes on each search server.
This way it's easy to phase out outdated segments and their indexes, and
adding new segments, while still using a merged index on each search
server for maximum performance.
PS. it's possible to implement a low-level Lucene tool to split indexes,
using FilteredIndexReader and IndexWriter.addIndexes(...). But it's not
that relevant if you use the strategy that I explained above.
--
Best regards,
Andrzej Bialecki <><
___. ___ ___ ___ _ _ __________________________________
[__ || __|__/|__||\/| Information Retrieval, Semantic Web
___|||__|| \| || | Embedded Unix, System Integration
http://www.sigram.com Contact: info at sigram dot com
Re: index splitting possible?
Posted by Alexander Aristov <al...@gmail.com>.
Hi
Thank you for Katta
But are there any built-in Nutch functionality which can do this stuff. What
I am looking forward is to make distributed search as I am planning to build
an index of quite big size and so it will be not possible to keep it on one
server.
What are best practices for doing this?
Alex
2008/8/3 Marcus Herou <ma...@tailsweep.com>
> Hi.
>
> I think you should look at Katta: http://katta.wiki.sourceforge.net/. But
> essentially I think it is quite easy to create a map reduce job which uses
> an arbitrary lucene index as input and writes the output to the local
> filesystem.
>
> Kindly
>
> //Marcus
>
>
> On Sat, Aug 2, 2008 at 10:51 AM, Alexander Aristov <
> alexander.aristov@gmail.com> wrote:
>
> > Hi
> >
> > I am planning to implement distributed searching using Nutch and hence I
> > will need a few machines with built indexes.
> >
> > First I want to build index running it on a Hadoop cluster. One big index
> > at
> > once.
> >
> > Is it possible to split up the index later (and all necessary segments)
> to
> > upload them to different servers. Also can I set size of a part of each
> > index?
> >
> > Also I use merge segemnts and merge index routines. Are they necessary If
> I
> > want to have split index?
> >
> >
> > --
> > Best Regards
> > Alexander Aristov
> >
>
>
>
> --
> Marcus Herou CTO and co-founder Tailsweep AB
> +46702561312
> marcus.herou@tailsweep.com
> http://www.tailsweep.com/
> http://blogg.tailsweep.com/
>
--
Best Regards
Alexander Aristov
Re: index splitting possible?
Posted by Marcus Herou <ma...@tailsweep.com>.
Hi.
I think you should look at Katta: http://katta.wiki.sourceforge.net/. But
essentially I think it is quite easy to create a map reduce job which uses
an arbitrary lucene index as input and writes the output to the local
filesystem.
Kindly
//Marcus
On Sat, Aug 2, 2008 at 10:51 AM, Alexander Aristov <
alexander.aristov@gmail.com> wrote:
> Hi
>
> I am planning to implement distributed searching using Nutch and hence I
> will need a few machines with built indexes.
>
> First I want to build index running it on a Hadoop cluster. One big index
> at
> once.
>
> Is it possible to split up the index later (and all necessary segments) to
> upload them to different servers. Also can I set size of a part of each
> index?
>
> Also I use merge segemnts and merge index routines. Are they necessary If I
> want to have split index?
>
>
> --
> Best Regards
> Alexander Aristov
>
--
Marcus Herou CTO and co-founder Tailsweep AB
+46702561312
marcus.herou@tailsweep.com
http://www.tailsweep.com/
http://blogg.tailsweep.com/
index splitting possible?
Posted by Alexander Aristov <al...@gmail.com>.
Hi
I am planning to implement distributed searching using Nutch and hence I
will need a few machines with built indexes.
First I want to build index running it on a Hadoop cluster. One big index at
once.
Is it possible to split up the index later (and all necessary segments) to
upload them to different servers. Also can I set size of a part of each
index?
Also I use merge segemnts and merge index routines. Are they necessary If I
want to have split index?
--
Best Regards
Alexander Aristov