How to specify in webapp where to find indexes?

View: New views
3 Messages — Rating Filter:   Alert me  

How to specify in webapp where to find indexes?

by funnyduck :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,
I want to explicitly specify location of indexes folder.
As I understand I should specify some property pointing to index
location in Configuration, before executing method parse on Queue:
Query.parse(query, lang, conf)
Am I right?
Are there any other ways of doing it?
Thanks.

Re: How to specify in webapp where to find indexes?

by kevin chen-6 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

You can put a full path in nutch-site.xml
<property>
  <name>searcher.dir</name>
  <value>/full/path/crawl</value>
  <description>
  Path to root of crawl.  This directory is searched (in
  order) for either the file search-servers.txt, containing a list of
  distributed search servers, or the directory "index" containing
  merged indexes, or the directory "segments" containing segment
  indexes.
  </description>
</property>


On Wed, 2009-10-28 at 19:36 +0300, Dmitriy Fundak wrote:
> Hi,
> I want to explicitly specify location of indexes folder.
> As I understand I should specify some property pointing to index
> location in Configuration, before executing method parse on Queue:
> Query.parse(query, lang, conf)
> Am I right?
> Are there any other ways of doing it?
> Thanks.


Re: How to specify in webapp where to find indexes?

by funnyduck :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks.
It helps.

2009/10/29 kevin chen <kevinchen@...>:

> You can put a full path in nutch-site.xml
> <property>
>  <name>searcher.dir</name>
>  <value>/full/path/crawl</value>
>  <description>
>  Path to root of crawl.  This directory is searched (in
>  order) for either the file search-servers.txt, containing a list of
>  distributed search servers, or the directory "index" containing
>  merged indexes, or the directory "segments" containing segment
>  indexes.
>  </description>
> </property>
>
>
> On Wed, 2009-10-28 at 19:36 +0300, Dmitriy Fundak wrote:
>> Hi,
>> I want to explicitly specify location of indexes folder.
>> As I understand I should specify some property pointing to index
>> location in Configuration, before executing method parse on Queue:
>> Query.parse(query, lang, conf)
>> Am I right?
>> Are there any other ways of doing it?
>> Thanks.
>
>