e-
> From: Konstantyn Smirnov [mailto:inject...@yahoo.com]
> Sent: Thursday, February 28, 2013 12:18 AM
> To: java-user@lucene.apache.org
> Subject: RE: Confusion with Analyzer.tokenStream() re-use in 4.1
>
> Thanks for the answer Uwe!
>
> so the behavior has changed since t
Thanks for the answer Uwe!
so the behavior has changed since the 3.6, hasn't it?
Now I need to instantiate the analyzer each time I feed the field with the
tokenStream, or it happens behind the scenes if I use new (String name,
String value, Field.Store store).
Another question then... Now I tr
age-
> From: Uwe Schindler [mailto:u...@thetaphi.de]
> Sent: Wednesday, February 27, 2013 8:03 PM
> To: 'java-user@lucene.apache.org'
> Subject: RE: Confusion with Analyzer.tokenStream() re-use in 4.1
>
> The problem here is that the tokenstream is instantiated in the same
ier-Allee 63, D-28213 Bremen
http://www.thetaphi.de
eMail: u...@thetaphi.de
> -Original Message-
> From: Konstantyn Smirnov [mailto:inject...@yahoo.com]
> Sent: Wednesday, February 27, 2013 6:25 PM
> To: java-user@lucene.apache.org
> Subject: Confusion with Analyzer.tokenSt
Dear all,
I'm using the following test-code:
Document doc = new Document()
Analyzer a = new SimpleAnalyzer( Version.LUCENE_41 )
TokenStream inputTS = a.tokenStream( 'name1', new StringReader( 'aaa bbb
ccc' ) )
Field f = new TextField( 'name1', inputTS )
doc.add f
TokenStream ts = doc.getField(