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
