You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by jitender ahuja <aj...@aalayance.com> on 2004/03/27 19:27:23 UTC

replacing StopAnalyzer() in results.jsp causes ambiguity error

Hi,
       I want to replace the StopAnalyzer() with StandardAnalyzer() in line 68 of results.jsp, 

       Analyzer analyzer = new StopAnalyzer();         //construct our usual analyzer

       but it generates error:

"reference to ParseException is ambiguous, both class org.apache.lucene.queryParser.ParseException in org.apache.lucene.queryParser and class org.apache.lucene.analysis.standard.ParseException in org.apache.lucene.analysis.standard match"

This error arises because of the StandardTokeniser(reader) being called  by the StandardAnalyzer class.



 Can anyone tell how to resolve this error?

Regards,
Jitender