You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@nutch.apache.org by Abdelhakim Diab <ab...@gmail.com> on 2006/07/16 12:26:28 UTC

integrate nutch search engine with cms

I am using magnolia CMS to build my site under tomcat web server and I wanna 
integrate nutch search engine in my site.
the search application coming with nutch is very good after I extracted it 
under tomcat and all I need to work is to put the index & segments folders 
resulting from the crawling operation in the tomcat/bin  folder and every 
thing is ok.
my problem is when I integrated the search application in magnolia cms the 
nutchBean class can't see the index & segments folders .
I tried to put them in many locations but in vain .
the exception is :java.lang.NullPointerException
pls any help 


Re: integrate nutch search engine with cms

Posted by Abdelhakim Diab <ab...@gmail.com>.
I have solved the problem I mentioned before .
now I can get the database directory where the index and segments are found 
but now when I construct nutchBean object i get this exception :
java.lang.ArrayIndexOutOfBoundsException: -1
any help please.
----- Original Message ----- 
From: "Gal Nitzan" <gn...@usa.net>
To: <nu...@lucene.apache.org>
Sent: Sunday, July 16, 2006 3:38 PM
Subject: RE: integrate nutch search engine with cms


> Hi,
>
> First make sure the search servlet works properly. The location to the
> segments, linkdb and index folder should be specified in
> WEB-INF/classes/nutch-site.xml in the property searcher.dir . So for 
> example
> if your folders are as follows:
> /nutch/segments
> /nutch/index
> /nutch/linkdb
>
> The value of searcher.dir should be: /nutch
>
> HTH
>
> Gal
>
> -----Original Message-----
> From: Abdelhakim Diab [mailto:abdelhakimdiab@gmail.com]
> Sent: Sunday, July 16, 2006 12:26 PM
> To: nutch-user@lucene.apache.org
> Subject: integrate nutch search engine with cms
>
> I am using magnolia CMS to build my site under tomcat web server and I 
> wanna
>
> integrate nutch search engine in my site.
> the search application coming with nutch is very good after I extracted it
> under tomcat and all I need to work is to put the index & segments folders
> resulting from the crawling operation in the tomcat/bin  folder and every
> thing is ok.
> my problem is when I integrated the search application in magnolia cms the
> nutchBean class can't see the index & segments folders .
> I tried to put them in many locations but in vain .
> the exception is :java.lang.NullPointerException
> pls any help
>
>
> 


Re: integrate nutch search engine with cms

Posted by Abdelhakim Diab <ab...@gmail.com>.
Thanks very much but I have tried more than possibility but in vain .
the same exception .
any body can give me the instructions for integrating the nutch search 
application in my application .
----- Original Message ----- 
From: "Gal Nitzan" <gn...@usa.net>
To: <nu...@lucene.apache.org>
Sent: Sunday, July 16, 2006 3:38 PM
Subject: RE: integrate nutch search engine with cms


> Hi,
>
> First make sure the search servlet works properly. The location to the
> segments, linkdb and index folder should be specified in
> WEB-INF/classes/nutch-site.xml in the property searcher.dir . So for 
> example
> if your folders are as follows:
> /nutch/segments
> /nutch/index
> /nutch/linkdb
>
> The value of searcher.dir should be: /nutch
>
> HTH
>
> Gal
>
> -----Original Message-----
> From: Abdelhakim Diab [mailto:abdelhakimdiab@gmail.com]
> Sent: Sunday, July 16, 2006 12:26 PM
> To: nutch-user@lucene.apache.org
> Subject: integrate nutch search engine with cms
>
> I am using magnolia CMS to build my site under tomcat web server and I 
> wanna
>
> integrate nutch search engine in my site.
> the search application coming with nutch is very good after I extracted it
> under tomcat and all I need to work is to put the index & segments folders
> resulting from the crawling operation in the tomcat/bin  folder and every
> thing is ok.
> my problem is when I integrated the search application in magnolia cms the
> nutchBean class can't see the index & segments folders .
> I tried to put them in many locations but in vain .
> the exception is :java.lang.NullPointerException
> pls any help
>
>
> 


RE: integrate nutch search engine with cms

Posted by Gal Nitzan <gn...@usa.net>.
Hi,

First make sure the search servlet works properly. The location to the
segments, linkdb and index folder should be specified in
WEB-INF/classes/nutch-site.xml in the property searcher.dir . So for example
if your folders are as follows:
/nutch/segments
/nutch/index
/nutch/linkdb

The value of searcher.dir should be: /nutch

HTH

Gal

-----Original Message-----
From: Abdelhakim Diab [mailto:abdelhakimdiab@gmail.com] 
Sent: Sunday, July 16, 2006 12:26 PM
To: nutch-user@lucene.apache.org
Subject: integrate nutch search engine with cms

I am using magnolia CMS to build my site under tomcat web server and I wanna

integrate nutch search engine in my site.
the search application coming with nutch is very good after I extracted it 
under tomcat and all I need to work is to put the index & segments folders 
resulting from the crawling operation in the tomcat/bin  folder and every 
thing is ok.
my problem is when I integrated the search application in magnolia cms the 
nutchBean class can't see the index & segments folders .
I tried to put them in many locations but in vain .
the exception is :java.lang.NullPointerException
pls any help