lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From AHMET ARSLAN <iori...@yahoo.com>
Subject Re: RES: Question about TokenStream lucene 3.0
Date Wed, 30 Dec 2009 19:36:15 GMT

> System.out.println(typeAtt.type());
> ??? And this typeAtt?
> 
> Thanks!
> 

Yes. You can add the other attributes if you want. By the way i forget to remove (TermAttribute)
and TypeAttribute). You don't need them in 3.0.0.

TermAttribute termAtt = tokenStream.getAttribute(TermAttribute.class);
TypeAttribute typeAtt = tokenStream.getAttribute(TypeAttribute.class);


      

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message