Hi, NumericTokenStream is an internal class to implement NumericField. It is only public for historical reasons (was used by Solr) and because it is in another package. The Attributes it uses do not implement clone, because they have some internal state. Cloning is also not needed, because in "standard" Analyzers you would not see those TokenStreams. Lucene also never adds TokenFilters on top.
Let me check if this TokenStream is really marked as @lucene.internal in Javadocs. Uwe ----- Uwe Schindler H.-H.-Meier-Allee 63, D-28213 Bremen http://www.thetaphi.de eMail: [email protected] > -----Original Message----- > From: Shaun Senecal [mailto:[email protected]] > Sent: Thursday, January 08, 2015 8:06 PM > To: [email protected] > Subject: cloning a NumericTermAttributeImpl > > It appears that NumericTermAttributeImpl doesn't support cloning. Is this > simply an oversight, or is there a reason why this isnt possible? > > > I'm trying to clone a State containing a NumericTermAttribute, and I end up > with all of the BytesRefs being equal to the last instance, since the > NumericTermAttributeImpl? isn't actually being cloned. Is there a way > around this? > > > > Thanks > > > Shaun --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
