RE: Where to free Tokenizer resources?

2009-11-12 Thread Teruhiko Kurosaka
reading this incorrectly? -kuro -Original Message- From: ysee...@gmail.com [mailto:ysee...@gmail.com] On Behalf Of Yonik Seeley Sent: Tuesday, October 20, 2009 9:37 AM To: solr-dev@lucene.apache.org Subject: Re: Where to free Tokenizer resources? If you really want to release

Re: Where to free Tokenizer resources?

2009-10-20 Thread Yonik Seeley
If you really want to release/acquire your resources each time the tokenizer is used, then release it in the close() and acquire in the reset(). There is no done with this forever callback. -Yonik http://www.lucidimagination.com On Tue, Oct 20, 2009 at 12:25 PM, Teruhiko Kurosaka

RE: Where to free Tokenizer resources?

2009-10-20 Thread Teruhiko Kurosaka
Yonik, If you really want to release/acquire your resources each time the tokenizer is used, then release it in the close() and acquire in the reset(). There is no done with this forever callback. I wanted to avoid that because acquring this resource is a relatively expensive operation.

Re: Where to free Tokenizer resources?

2009-10-20 Thread Erik Hatcher
What about acquiring the resource in your tokenizer factory instead of at the tokenizer level? Erik On Oct 20, 2009, at 1:16 PM, Teruhiko Kurosaka wrote: Yonik, If you really want to release/acquire your resources each time the tokenizer is used, then release it in the close()

RE: Where to free Tokenizer resources?

2009-10-20 Thread Teruhiko Kurosaka
-dev@lucene.apache.org Subject: Re: Where to free Tokenizer resources? What about acquiring the resource in your tokenizer factory instead of at the tokenizer level? Erik On Oct 20, 2009, at 1:16 PM, Teruhiko Kurosaka wrote: Yonik, If you really want to release/acquire