> 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);
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
> 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
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