Re: NullPointerExc in CloseableThreadLocal... (Lucene 3.0.0)

2010-01-13 Thread Konstantyn Smirnov
Thanks for the answer Mike indeed it is possible, but practically... I start the loop immediately after searcher.search(), and with my index size of 3 MB, the whole operation takes max 100 ms. Given the rate of like 50 updates - addDocument()/expungeDeletes()/IR.reopen() per day, the probability

Re: NullPointerExc in CloseableThreadLocal... (Lucene 3.0.0)

2010-01-13 Thread Michael McCandless
Is it possible you are closing the searcher before / while running that for loop? Mike On Wed, Jan 13, 2010 at 9:26 AM, Konstantyn Smirnov wrote: > > Hi all > > Consider the following piece of code: > > Searcher s = this.getSearcher() > def hits = s.search( query, filter, params.offset + params.

NullPointerExc in CloseableThreadLocal... (Lucene 3.0.0)

2010-01-13 Thread Konstantyn Smirnov
Hi all Consider the following piece of code: Searcher s = this.getSearcher() def hits = s.search( query, filter, params.offset + params.max, sort ) for( hit in hits.scoreDocs[ lower..http://www.poiradar.ru www.poiradar.ru http://www.poiradar.com.ua www.poiradar.com.ua http://www.poiradar.com