You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Alain Lauzon <al...@libertefinanciere.com> on 2003/03/11 19:05:39 UTC

what's wrong with getting a standardTokenizer from a standardAnalyzer ?

When I run code that includes this :

StandardAnalyzer analyzer = new StandardAnalyzer();
StandardTokenizer tokenizer = 
(StandardTokenizer)analyzer.tokenStream("someFieldName", someReader);

I get that:
  caught a class java.lang.ClassCastException
  with message: org.apache.lucene.analysis.StopFilter
java.lang.ClassCastException: org.apache.lucene.analysis.StopFilter
         at SearchCompanies.search(SearchCompanies.java:432)
         at SearchCompanies.main(SearchCompanies.java:134)

Any clue on what's wrong with getting a standardTokenizer from a 
standardAnalyzer ?

Alain Lauzon