lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alain Lauzon <alau...@libertefinanciere.com>
Subject what's wrong with getting a standardTokenizer from a standardAnalyzer ?
Date Tue, 11 Mar 2003 18:05:39 GMT
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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message