Re: RES: Question about TokenStream lucene 3.0

2009-12-30 Thread AHMET ARSLAN
> 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);

RES: Question about TokenStream lucene 3.0

2009-12-30 Thread Mário André
about TokenStream lucene 3.0 > Using PorterStemFilter and removing the stopwords, but how > can I use > TokenStream in release 3.0 (print the result this method). > > I tried to use: > >     public static void main(String[] args) throws > IOExc

Re: Question about TokenStream lucene 3.0

2009-12-30 Thread AHMET ARSLAN
> Using PorterStemFilter and removing the stopwords, but how > can I use > TokenStream in release 3.0 (print the result this method). > > I tried to use: > >     public static void main(String[] args) throws > IOException, > ParseException >     { >       StringReader sr = new > StringReader("T

Question about TokenStream lucene 3.0

2009-12-30 Thread Mário André
Hi, I have the method below: public final TokenStream tokenStream(String fieldName, Reader reader) { TokenStream result = new LowerCaseTokenizer(reader); result = new StopFilter(true, result, stopWords, true); result = new PorterStemFilter(result); return re