Has anyone got experience of using the IndexSearcher in a servlet? I'm having
caching problems when there's a lot of different concurrent users with the
current setup. Currently the setup is to create a IndexSearcher per servlet
doPost call and close it after. But with concurrent requests - espe
Thanks all for your feedback. I'm going to look at building a dedicated
server that keeps one IndexSearcher open and each servlet would use that.
Either that or look deeper into the Jetty framework to see if I can simply
invoke a global IndexSearcher when the server starts and use that. Not quite
s
Just use 2 different indices? One temp one that is being optimized and one
current being used. Then switch the paths on your application when the temp
one is ready.
- Original Message -
From: "Eric Louvard" <[EMAIL PROTECTED]>
To:
Sent: Wednesday, October 05, 2005 3:10 PM
Subject: IndexWr
- Original Message -
From: "Erik Hatcher" <[EMAIL PROTECTED]>
To:
Sent: Wednesday, October 05, 2005 6:34 PM
Subject: Re: IndexSearcher in servlet containers
>
> On Oct 5, 2005, at 9:54 AM, Cyril Barlow wrote:
> > Thanks all for your feedback. I
Is it an actual array of full Documents or a list of reference points to
Documents? And what's the typical size in memory of a Hits object with say
1000 avg size docs?
___
Yahoo! Messenger - NEW crystal cl
- Original Message -
From: "Erik Hatcher" <[EMAIL PROTECTED]>
To:
Sent: Wednesday, October 05, 2005 8:20 PM
Subject: Re: IndexSearcher in servlet containers
>
> On Oct 5, 2005, at 2:09 PM, Cyril Barlow wrote:
> >> I'm really confused on the dile
> > I'm getting :
> >
> > java.io.IOException: The handle is invalid at
> > java.io.RandomAccessFile.seek(Native Method) at
>
> Did you perhaps close the IndexSearcher somewhere along the way?
>
> Erik
No, but I'm now creating new IndexSearchers every servlet doPost method and
not closing
- Original Message -
From: "Erik Hatcher" <[EMAIL PROTECTED]>
To:
Sent: Thursday, October 06, 2005 2:10 AM
Subject: Re: IndexSearcher in servlet containers
>
> On Oct 5, 2005, at 9:03 PM, Cyril Barlow wrote:
>
> >
> >
> >>> I'm get
Have a look at your fields to see if they share a certain term. eg if you
have a URL field then 'http' will probably bring them all up.
___
To help you stay safe and secure online, we've developed the all new Yahoo!
Securi
I'm trying to pass an IndexSearcher over RMI but I'm getting a :
java.rmi.UnmarshalException: error unmarshalling return; nested exception
is:
java.io.WriteAbortedException: writing aborted;
java.io.NotSerializableException: org.apache.lucene.search.IndexSearcher
Is there any way around t
>
> There really is no need to close an IndexSearcher until you need to
> instantiate another one, and even then you can let the old instance
> go without closing and all will still be well. If you construct
> IndexSearcher with a String directory name, there is no need to close
> anything other
- Original Message -
From: "Erik Hatcher" <[EMAIL PROTECTED]>
To:
Sent: Thursday, October 06, 2005 1:49 PM
Subject: Re: IndexSearcher over RMI
>
> On Oct 6, 2005, at 8:45 AM, Cyril Barlow wrote:
> > I'm trying to pass an IndexSe
cannot benefit from the Hits caching, for
example which employ their own hit caching layer, one can effectively use
the so-called "low level" IndexSearcher routines which return TopDocs rather
than Hits.
>
> - J.J.
>
> At 8:26 PM +0100 10/5/05, Cyril Barlow wrote:
> >Is i
Can you make a search that searches deleted docs as well as normal docs?
___
To help you stay safe and secure online, we've developed the all new Yahoo!
Security Centre. http://uk.security.yahoo.com
---
14 matches
Mail list logo