You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by David Spencer <da...@tropo.com> on 2004/09/08 20:17:26 UTC
IndexSearcher.close() and aborting searches in progress
http://jakarta.apache.org/lucene/docs/api/org/apache/lucene/search/IndexSearcher.html#close()
What is the intent of IndexSearcher.close()?
I want to know how, in a web app, one can stop a search that's in
progress - use case is a user is limited to one search at at time, and
when one (expensive) search is running they decide it's taking too long
so they elaborate on the query and resubmit it. Goal is for the server
to stop the search that's in progress and to start a new one. I know how
to deal w/ session vars and so on in a web container - but can one stop
a search that's in progress and is that the intent of close()?
I haven't done the obvious experiment but regardless, the javadoc is
kinda terse so I wanted to hear from the all knowing people on the list.
thx,
Dave
---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org
Re: View lucene index file
Posted by Cheolgoo Kang <ap...@gmail.com>.
check out this page
http://jakarta.apache.org/lucene/docs/contributions.html
we got tools like LIMO and Luke.
Cheo
On Thu, 9 Sep 2004 23:38:17 -0400, Anne Y. Zhang <yz...@psu.edu> wrote:
> I am using Nutch. Is there any way I can view the lucene index file?
> It seems that lucene write index as binary file. Could anybody explain
> how lucene does the indexing and where the index file located?
> Thank you very much!
>
> Ya
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: lucene-user-help@jakarta.apache.org
>
>
--
Cheolgoo, Kang
---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org
View lucene index file
Posted by "Anne Y. Zhang" <yz...@psu.edu>.
I am using Nutch. Is there any way I can view the lucene index file?
It seems that lucene write index as binary file. Could anybody explain
how lucene does the indexing and where the index file located?
Thank you very much!
Ya
---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org
Re: Full web search engine package using Lucene
Posted by "Anne Y. Zhang" <yz...@psu.edu>.
Thanks a lot!
Ya
----- Original Message -----
From: "Bernhard Messer" <Be...@intrafind.de>
To: "Lucene Users List" <lu...@jakarta.apache.org>
Sent: Wednesday, September 08, 2004 3:38 PM
Subject: Re: Full web search engine package using Lucene
> Anne Y. Zhang wrote:
>
> >Thanks, David. But it seems that this is downloadable.
> >Could you please provide me the link for download?
> >Thank you very much!
> >
> >
> http://www.nutch.org/release/
>
> >Ya
> >----- Original Message -----
> >From: "David Spencer" <da...@tropo.com>
> >To: "Lucene Users List" <lu...@jakarta.apache.org>
> >Sent: Wednesday, September 08, 2004 2:43 PM
> >Subject: Re: Full web search engine package using Lucene
> >
> >
> >
> >
> >>Anne Y. Zhang wrote:
> >>
> >>
> >>
> >>>Hi, I am assistanting a professor for a IR course.
> >>>We need to provide the student with a full-fuctioned
> >>>search engine package, and the professor prefers it
> >>>being powered by lucene. Since I am new to lucene,
> >>>can anyone provide me some information that where
> >>>can I get the package? We also want the package
> >>>contains the crawling function. Thank you very much!
> >>>
> >>>
> >>http://www.nutch.org/
> >>
> >>
> >>
> >>>Ya
> >>>
> >>>
> >>>
> >>>---------------------------------------------------------------------
> >>>To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
> >>>For additional commands, e-mail: lucene-user-help@jakarta.apache.org
> >>>
> >>>
> >>>
> >>---------------------------------------------------------------------
> >>To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
> >>For additional commands, e-mail: lucene-user-help@jakarta.apache.org
> >>
> >>
> >>
> >>
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
> >For additional commands, e-mail: lucene-user-help@jakarta.apache.org
> >
> >
> >
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org
Re: Full web search engine package using Lucene
Posted by Bernhard Messer <Be...@intrafind.de>.
Anne Y. Zhang wrote:
>Thanks, David. But it seems that this is downloadable.
>Could you please provide me the link for download?
>Thank you very much!
>
>
http://www.nutch.org/release/
>Ya
>----- Original Message -----
>From: "David Spencer" <da...@tropo.com>
>To: "Lucene Users List" <lu...@jakarta.apache.org>
>Sent: Wednesday, September 08, 2004 2:43 PM
>Subject: Re: Full web search engine package using Lucene
>
>
>
>
>>Anne Y. Zhang wrote:
>>
>>
>>
>>>Hi, I am assistanting a professor for a IR course.
>>>We need to provide the student with a full-fuctioned
>>>search engine package, and the professor prefers it
>>>being powered by lucene. Since I am new to lucene,
>>>can anyone provide me some information that where
>>>can I get the package? We also want the package
>>>contains the crawling function. Thank you very much!
>>>
>>>
>>http://www.nutch.org/
>>
>>
>>
>>>Ya
>>>
>>>
>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
>>>For additional commands, e-mail: lucene-user-help@jakarta.apache.org
>>>
>>>
>>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: lucene-user-help@jakarta.apache.org
>>
>>
>>
>>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: lucene-user-help@jakarta.apache.org
>
>
>
Re: Full web search engine package using Lucene
Posted by "Anne Y. Zhang" <yz...@psu.edu>.
Thanks, David. But it seems that this is downloadable.
Could you please provide me the link for download?
Thank you very much!
Ya
----- Original Message -----
From: "David Spencer" <da...@tropo.com>
To: "Lucene Users List" <lu...@jakarta.apache.org>
Sent: Wednesday, September 08, 2004 2:43 PM
Subject: Re: Full web search engine package using Lucene
> Anne Y. Zhang wrote:
>
> > Hi, I am assistanting a professor for a IR course.
> > We need to provide the student with a full-fuctioned
> > search engine package, and the professor prefers it
> > being powered by lucene. Since I am new to lucene,
> > can anyone provide me some information that where
> > can I get the package? We also want the package
> > contains the crawling function. Thank you very much!
>
> http://www.nutch.org/
>
> >
> > Ya
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: lucene-user-help@jakarta.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: lucene-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org
Re: Full web search engine package using Lucene
Posted by David Spencer <da...@tropo.com>.
Anne Y. Zhang wrote:
> Hi, I am assistanting a professor for a IR course.
> We need to provide the student with a full-fuctioned
> search engine package, and the professor prefers it
> being powered by lucene. Since I am new to lucene,
> can anyone provide me some information that where
> can I get the package? We also want the package
> contains the crawling function. Thank you very much!
http://www.nutch.org/
>
> Ya
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: lucene-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org
Full web search engine package using Lucene
Posted by "Anne Y. Zhang" <yz...@psu.edu>.
Hi, I am assistanting a professor for a IR course.
We need to provide the student with a full-fuctioned
search engine package, and the professor prefers it
being powered by lucene. Since I am new to lucene,
can anyone provide me some information that where
can I get the package? We also want the package
contains the crawling function. Thank you very much!
Ya
---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org
Re: IndexSearcher.close() and aborting searches in progress
Posted by Otis Gospodnetic <ot...@yahoo.com>.
Dave,
I haven't tried this, but I think this would be messy. Lucene needs to
keep index files open, so that when you pull a Document from Hits, it
can read this stuff from those files. If you close index files, you
are likely to get some NPEs or some such.
I don't think you'll find a ready to use API for this use case in
Lucene. Instead, my guess is that you will have to manually keep track
of your IndexSearcher's status (open/closed), and allow searches to
return results only if status == open.
Otis
--- David Spencer <da...@tropo.com> wrote:
>
http://jakarta.apache.org/lucene/docs/api/org/apache/lucene/search/IndexSearcher.html#close()
>
> What is the intent of IndexSearcher.close()?
>
> I want to know how, in a web app, one can stop a search that's in
> progress - use case is a user is limited to one search at at time,
> and
> when one (expensive) search is running they decide it's taking too
> long
> so they elaborate on the query and resubmit it. Goal is for the
> server
> to stop the search that's in progress and to start a new one. I know
> how
> to deal w/ session vars and so on in a web container - but can one
> stop
> a search that's in progress and is that the intent of close()?
>
> I haven't done the obvious experiment but regardless, the javadoc is
> kinda terse so I wanted to hear from the all knowing people on the
> list.
>
> thx,
> Dave
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: lucene-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org