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 Ti

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 th

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-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-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: Nut

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 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 t

Re: search timeout

2007-03-17 Thread 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 the HitCollector approach is this just engineer

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 previousl

RE: Search Timeout - abort a search

2005-07-07 Thread Jason Polites
You could do it asynchronously. That is, separate off the actually lucene search into a different thread which does the actual search, then the calling thread simply waits for a maximum time for the search thread to complete, then queries the status of the search thread to get the results obtained

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 throu