You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@nutch.apache.org by Victor Lee <vi...@yahoo.com> on 2005/11/14 01:31:21 UTC
Is NutchBean Class Thead/Process-Safe?
Hi,
I am using php with php-java-bridge to replace jsp
with Nutch. Since php doesn't have an
application-scope like jsp, nutchbean object has to be
created every time php script runs. Is NutchBean
designed for something like that? I worry because
there will be multiple instance of objects of
NutchBean running at the same time, depend on # of
user is doing searching.
Many thanks.
__________________________________
Yahoo! FareChase: Search multiple travel sites in one click.
http://farechase.yahoo.com
Re: Is NutchBean Class Thead/Process-Safe?
Posted by Bruno Patini Furtado <bp...@gmail.com>.
On 11/14/05, Victor Lee <vi...@yahoo.com> wrote:
>
> I thought about that too, but isn't it inefficent to
> have both php and jsp and tomcat and java running when
> I can have just php and java running?
One more Tomcat instance in your server will not represent more than only
some more megabytes of RAM used. I see no performance issues adding it to
your application architecture.
Maybe I can
> check for existing of index and segments inside
> nutchbean, so that it doesn't create them again for
> each new nutchbean?
In this case you could obtain your NutchBean instance through a
NutchBeanFactory
(that you would need to write) that would make use of a Singleton instance
of NutchBean. This way you would be free from changing the NutchBean class
and would be shielded from future changes on it.
Where can I find more about how to use opensearch with
> Nutch?
>
> Many thanks.
>
> --- Andrzej Bialecki <ab...@getopt.org> wrote:
>
> > Victor Lee wrote:
> >
> > >How should I go around the problem?
> > >
> > >
> > >
> >
> > Don't use php-java bridge - use OpenSearch servlet
> > to get RSS with
> > results, and then parse RSS using PHP; the servlet
> > container will cache
> > NutchBean for you.
> >
> > --
> > Best regards,
> > Andrzej Bialecki <><
> > ___. ___ ___ ___ _ _
> > __________________________________
> > [__ || __|__/|__||\/| Information Retrieval,
> > Semantic Web
> > ___|||__|| \| || | Embedded Unix, System
> > Integration
> > http://www.sigram.com Contact: info at sigram dot
> > com
> >
> >
> >
>
>
>
>
>
> __________________________________
> Yahoo! Mail - PC Magazine Editors' Choice 2005
> http://mail.yahoo.com
>
--
"Minds are like parachutes, they work best when open."
Bruno Patini Furtado
Software Developer
webpage: www.bpfurtado.net <http://www.bpfurtado.net>
blog: http://www.livejournal.com/users/bpfurtado/
Re: Nutch developer required
Posted by wu fuheng <wu...@gmail.com>.
I am interested ,but I am in Singapore...
On 11/15/05, Dean Elwood <de...@gmail.com> wrote:
>
> I'm looking for a freelance Nutch developer who can do a smallish job for
> me - customising our Nutch intranet search engine.
>
> I can prepare some mockups - it will be pretty basic. I need someone to do
> the php part, and style the results pages.
>
> If anyone is interested, please drop me a line.
>
> Thanks,
>
> Dean
>
> ----- Original Message -----
> From: "Victor Lee" <vi...@yahoo.com>
> To: <nu...@lucene.apache.org>
> Sent: Monday, November 14, 2005 9:48 PM
> Subject: Re: Is NutchBean Class Thead/Process-Safe?
>
>
> >I thought about that too, but isn't it inefficent to
> > have both php and jsp and tomcat and java running when
> > I can have just php and java running? Maybe I can
> > check for existing of index and segments inside
> > nutchbean, so that it doesn't create them again for
> > each new nutchbean?
> >
> > Where can I find more about how to use opensearch with
> > Nutch?
> >
> > Many thanks.
> >
> > --- Andrzej Bialecki <ab...@getopt.org> wrote:
> >
> >> Victor Lee wrote:
> >>
> >> >How should I go around the problem?
> >> >
> >> >
> >> >
> >>
> >> Don't use php-java bridge - use OpenSearch servlet
> >> to get RSS with
> >> results, and then parse RSS using PHP; the servlet
> >> container will cache
> >> NutchBean for you.
> >>
> >> --
> >> Best regards,
> >> Andrzej Bialecki <><
> >> ___. ___ ___ ___ _ _
> >> __________________________________
> >> [__ || __|__/|__||\/| Information Retrieval,
> >> Semantic Web
> >> ___|||__|| \| || | Embedded Unix, System
> >> Integration
> >> http://www.sigram.com Contact: info at sigram dot
> >> com
> >>
> >>
> >>
> >
> >
> >
> >
> >
> > __________________________________
> > Yahoo! Mail - PC Magazine Editors' Choice 2005
> > http://mail.yahoo.com
>
>
--
China LAMP Research Center - http://www.onlamp.org
Nutch developer required
Posted by Dean Elwood <de...@gmail.com>.
I'm looking for a freelance Nutch developer who can do a smallish job for
me - customising our Nutch intranet search engine.
I can prepare some mockups - it will be pretty basic. I need someone to do
the php part, and style the results pages.
If anyone is interested, please drop me a line.
Thanks,
Dean
----- Original Message -----
From: "Victor Lee" <vi...@yahoo.com>
To: <nu...@lucene.apache.org>
Sent: Monday, November 14, 2005 9:48 PM
Subject: Re: Is NutchBean Class Thead/Process-Safe?
>I thought about that too, but isn't it inefficent to
> have both php and jsp and tomcat and java running when
> I can have just php and java running? Maybe I can
> check for existing of index and segments inside
> nutchbean, so that it doesn't create them again for
> each new nutchbean?
>
> Where can I find more about how to use opensearch with
> Nutch?
>
> Many thanks.
>
> --- Andrzej Bialecki <ab...@getopt.org> wrote:
>
>> Victor Lee wrote:
>>
>> >How should I go around the problem?
>> >
>> >
>> >
>>
>> Don't use php-java bridge - use OpenSearch servlet
>> to get RSS with
>> results, and then parse RSS using PHP; the servlet
>> container will cache
>> NutchBean for you.
>>
>> --
>> Best regards,
>> Andrzej Bialecki <><
>> ___. ___ ___ ___ _ _
>> __________________________________
>> [__ || __|__/|__||\/| Information Retrieval,
>> Semantic Web
>> ___|||__|| \| || | Embedded Unix, System
>> Integration
>> http://www.sigram.com Contact: info at sigram dot
>> com
>>
>>
>>
>
>
>
>
>
> __________________________________
> Yahoo! Mail - PC Magazine Editors' Choice 2005
> http://mail.yahoo.com
Re: Is NutchBean Class Thead/Process-Safe?
Posted by Victor Lee <vi...@yahoo.com>.
I thought about that too, but isn't it inefficent to
have both php and jsp and tomcat and java running when
I can have just php and java running? Maybe I can
check for existing of index and segments inside
nutchbean, so that it doesn't create them again for
each new nutchbean?
Where can I find more about how to use opensearch with
Nutch?
Many thanks.
--- Andrzej Bialecki <ab...@getopt.org> wrote:
> Victor Lee wrote:
>
> >How should I go around the problem?
> >
> >
> >
>
> Don't use php-java bridge - use OpenSearch servlet
> to get RSS with
> results, and then parse RSS using PHP; the servlet
> container will cache
> NutchBean for you.
>
> --
> Best regards,
> Andrzej Bialecki <><
> ___. ___ ___ ___ _ _
> __________________________________
> [__ || __|__/|__||\/| Information Retrieval,
> Semantic Web
> ___|||__|| \| || | Embedded Unix, System
> Integration
> http://www.sigram.com Contact: info at sigram dot
> com
>
>
>
__________________________________
Yahoo! Mail - PC Magazine Editors' Choice 2005
http://mail.yahoo.com
Re: Is NutchBean Class Thead/Process-Safe?
Posted by Andrzej Bialecki <ab...@getopt.org>.
Victor Lee wrote:
>How should I go around the problem?
>
>
>
Don't use php-java bridge - use OpenSearch servlet to get RSS with
results, and then parse RSS using PHP; the servlet container will cache
NutchBean for you.
--
Best regards,
Andrzej Bialecki <><
___. ___ ___ ___ _ _ __________________________________
[__ || __|__/|__||\/| Information Retrieval, Semantic Web
___|||__|| \| || | Embedded Unix, System Integration
http://www.sigram.com Contact: info at sigram dot com
Re: Is NutchBean Class Thead/Process-Safe?
Posted by Victor Lee <vi...@yahoo.com>.
How should I go around the problem?
--- Andy Liu <an...@gmail.com> wrote:
> NutchBean is thread-safe, although creating a
> NutchBean on every search
> would become a serious bottleneck, since all the
> index structures and
> segments would have to be opened upon every request.
> Also, you might start
> getting file not found exceptions because of all the
> files that would have
> to be opened simultaneously if multiple requests
> come in at the same time.
>
> On 11/13/05, Victor Lee <vi...@yahoo.com>
> wrote:
> >
> > Hi,
> > I am using php with php-java-bridge to replace jsp
> > with Nutch. Since php doesn't have an
> > application-scope like jsp, nutchbean object has
> to be
> > created every time php script runs. Is NutchBean
> > designed for something like that? I worry because
> > there will be multiple instance of objects of
> > NutchBean running at the same time, depend on # of
> > user is doing searching.
> >
> > Many thanks.
> >
> >
> >
> > __________________________________
> > Yahoo! FareChase: Search multiple travel sites in
> one click.
> > http://farechase.yahoo.com
> >
>
__________________________________
Start your day with Yahoo! - Make it your home page!
http://www.yahoo.com/r/hs
Re: Is NutchBean Class Thead/Process-Safe?
Posted by Andy Liu <an...@gmail.com>.
NutchBean is thread-safe, although creating a NutchBean on every search
would become a serious bottleneck, since all the index structures and
segments would have to be opened upon every request. Also, you might start
getting file not found exceptions because of all the files that would have
to be opened simultaneously if multiple requests come in at the same time.
On 11/13/05, Victor Lee <vi...@yahoo.com> wrote:
>
> Hi,
> I am using php with php-java-bridge to replace jsp
> with Nutch. Since php doesn't have an
> application-scope like jsp, nutchbean object has to be
> created every time php script runs. Is NutchBean
> designed for something like that? I worry because
> there will be multiple instance of objects of
> NutchBean running at the same time, depend on # of
> user is doing searching.
>
> Many thanks.
>
>
>
> __________________________________
> Yahoo! FareChase: Search multiple travel sites in one click.
> http://farechase.yahoo.com
>