Re: search timeout

2007-03-18 Thread Andrzej Bialecki
Chris Hostetter wrote: Ack! ... this is what happens when i only skim a patch and then write with my odd mix of authority and childlike speling : * it creates a single (static) timer thread, which counts the ticks, : every couple hundred ms (configurable). It uses a volatile int counter, :

Re: search timeout

2007-03-18 Thread Erick Erickson
On 3/17/07, Chris Hostetter [EMAIL PROTECTED] wrote: Ack! ... this is what happens when i only skim a patch and then write with my odd mix of authority and childlike speling I'm telling ya, man, ya gotta get Firefox, use Gmail (or at least a web-interfaced e-mail client) and turn on the

Re: search timeout

2007-03-18 Thread Chris Hostetter
: imeediately? ... in the totally generic case, this isn't a safe : This was implemented as an easy way to control the maximum search time : for typical queries. I'm open for suggestions how to improve it. One The only thing i can think of that would truely timeout *any* query is a seperate

Re: search timeout

2007-03-17 Thread karl wettin
17 mar 2007 kl. 10.07 skrev markharw00d: Chris Hostetter wrote: this is something anyone using the Lucene API can do as long as they use a HitCollector ... the Nutch impl seems to ctually spin up a seperate thread I'm keen to understand the pros and cons of these two approaches. With

Re: search timeout

2007-03-17 Thread Andrzej Bialecki
markharw00d wrote: Chris Hostetter wrote: this is something anyone using the Lucene API can do as long as they use a HitCollector ... the Nutch impl seems to ctually spin up a seperate thread I'm keen to understand the pros and cons of these two approaches. With the HitCollector approach

Re: search timeout

2007-03-17 Thread Chris Hostetter
: this is something anyone using the Lucene API can do as long as they use a : HitCollector ... the Nutch impl seems to ctually spin up a seperate thread : : : I'm keen to understand the pros and cons of these two approaches. to clarify, it's really just one approach, with an extension: Nutch

Re: search timeout

2007-03-17 Thread Chris Hostetter
Ack! ... this is what happens when i only skim a patch and then write with my odd mix of authority and childlike speling : * it creates a single (static) timer thread, which counts the ticks, : every couple hundred ms (configurable). It uses a volatile int counter, : therefore avoiding the

Re: search timeout

2007-03-16 Thread Chris Hostetter
: Nutch recently added a search query timeout (NUTCH-308). Are there any : plans to add such functionality to the Lucene HitCollector directly? Or : is there some reason that this is a bad idea? Quickly skimming the patch in that Issue, Nutch seems to have done what has been discussed

search timeout

2007-03-15 Thread Sean Timm
Nutch recently added a search query timeout (NUTCH-308). Are there any plans to add such functionality to the Lucene HitCollector directly? Or is there some reason that this is a bad idea? I'm using Solr which doesn't seem to support search timeouts. It seems that it would make sense to

Search Timeout - abort a search

2005-07-07 Thread Dan Armbrust
Has anyone ever written code to make it possible to return from a search, after a given amount of time, returning the results that have been collected so far (but not necessarily all of them)? The only thing that I can see to do through the public Lucene API's would be to do the search using

Re: Search Timeout - abort a search

2005-07-07 Thread Paul Elschot
On Thursday 07 July 2005 16:06, Dan Armbrust wrote: Has anyone ever written code to make it possible to return from a search, after a given amount of time, returning the results that have been collected so far (but not necessarily all of them)? The only thing that I can see to do through

RE: Search Timeout - abort a search

2005-07-07 Thread Jason Polites
obtained to that point. You can then kill the search thread, or let it run in the background. -Original Message- From: Dan Armbrust [mailto:[EMAIL PROTECTED] Sent: Friday, 8 July 2005 12:06 AM To: java-user@lucene.apache.org Subject: Search Timeout - abort a search Has anyone ever written code