Home | About | Sematext search-lucene.com search-hadoop.com
 Search Lucene and all its subprojects:

Switch to Threaded View
Lucene, mail # dev - who clears attributes?


Copy link to this message
-
Re: who clears attributes?
Yonik Seeley 2009-08-10, 16:55
On Mon, Aug 10, 2009 at 12:44 PM, Uwe Schindler<[EMAIL PROTECTED]> wrote:
>the CharTokenizer should only clear the TermAttribute, as it is only using this attribute.

It's certainly not clear to me - is there an established convention?
Either Tokenizer clears all attributes, or each tokenizer clears those
attributes it cares about.  But in the latter case, wouldn't that
potentially cause multiple TokenFilters to clear the same attribute?

-Yonik
http://www.lucidimagination.com

---------------------------------------------------------------------