You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by Moreno Carullo <mo...@pulc.it> on 2007/12/14 08:07:12 UTC
A Searcher with timeout
Hi all,
I'm going to implement a way to start a search on Lucene with a user-defined
timeout.
This is really useful when you have to deal with very strict SLA, and for
what I have seen from the source code, this feature is still missing.
Has anyone start doing something similar?
Does my future patch has any chance to be included in standard lucene?
Thanks
--
Moreno Carullo
Re: A Searcher with timeout
Posted by Grant Ingersoll <gs...@apache.org>.
See https://issues.apache.org/jira/browse/LUCENE-997
On Dec 14, 2007, at 2:07 AM, Moreno Carullo wrote:
> Hi all,
> I'm going to implement a way to start a search on Lucene with a user-
> defined
> timeout.
> This is really useful when you have to deal with very strict SLA,
> and for
> what I have seen from the source code, this feature is still missing.
>
> Has anyone start doing something similar?
> Does my future patch has any chance to be included in standard lucene?
>
> Thanks
>
> --
> Moreno Carullo
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org
Re: A Searcher with timeout
Posted by Moreno Carullo <mo...@pulc.it>.
Thanks you all. Do you think such a feature will ever be included in
Lucene "standard"?
MC
On 12/15/07, Timo Nentwig <lu...@nitwit.de> wrote:
> On Friday 14 December 2007 16:56:07 Sean Timm wrote:
> > See LUCENE-997
> > https://issues.apache.org/jira/browse/LUCENE-997
>
> I actually have had this problem (ran into a synchronized{} bottleneck in
> FSDirectory) and "fixed" it by introducing a pool of Searchers (each
> allocates memory and each holds QueryFilter redundantly cached in a
> WeakHashMap...) and do deny queries if the pool is exhausted.
>
> The FAQ does not recommend this approach. Well, I don't like it as well but
> how to deal with this real-real-world problem otherwise?
>
> > -Sean
> >
> > Moreno Carullo wrote:
> > > Hi all,
> > > I'm going to implement a way to start a search on Lucene with a
> > > user-defined timeout.
> > > This is really useful when you have to deal with very strict SLA, and for
> > > what I have seen from the source code, this feature is still missing.
> > >
> > > Has anyone start doing something similar?
> > > Does my future patch has any chance to be included in standard lucene?
> > >
> > > Thanks
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
> > For additional commands, e-mail: java-dev-help@lucene.apache.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-dev-help@lucene.apache.org
>
>
--
Moreno Carullo
email // moreno.carullo (at) pulc (dot) it
web // http://moreno.pulc.it/
skype // morec82
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org
Re: A Searcher with timeout
Posted by Timo Nentwig <lu...@nitwit.de>.
On Friday 14 December 2007 16:56:07 Sean Timm wrote:
> See LUCENE-997
> https://issues.apache.org/jira/browse/LUCENE-997
I actually have had this problem (ran into a synchronized{} bottleneck in
FSDirectory) and "fixed" it by introducing a pool of Searchers (each
allocates memory and each holds QueryFilter redundantly cached in a
WeakHashMap...) and do deny queries if the pool is exhausted.
The FAQ does not recommend this approach. Well, I don't like it as well but
how to deal with this real-real-world problem otherwise?
> -Sean
>
> Moreno Carullo wrote:
> > Hi all,
> > I'm going to implement a way to start a search on Lucene with a
> > user-defined timeout.
> > This is really useful when you have to deal with very strict SLA, and for
> > what I have seen from the source code, this feature is still missing.
> >
> > Has anyone start doing something similar?
> > Does my future patch has any chance to be included in standard lucene?
> >
> > Thanks
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-dev-help@lucene.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org
Re: A Searcher with timeout
Posted by Sean Timm <ti...@aol.com>.
See LUCENE-997
https://issues.apache.org/jira/browse/LUCENE-997
-Sean
Moreno Carullo wrote:
> Hi all,
> I'm going to implement a way to start a search on Lucene with a user-defined
> timeout.
> This is really useful when you have to deal with very strict SLA, and for
> what I have seen from the source code, this feature is still missing.
>
> Has anyone start doing something similar?
> Does my future patch has any chance to be included in standard lucene?
>
> Thanks
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org