FAQ
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

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 3 of 4 | next ›
Discussion Overview
groupjava-user @
categorieslucene
postedMar 11, '03 at 3:06a
activeMar 11, '03 at 7:09p
posts4
users3
websitelucene.apache.org

People

Translate

site design / logo © 2022 Grokbase