Hi, 

 I am getting following errors: 

ravi@ravi-desktop:~/Desktop/sw/lucene-3.0.3$ javac -Xlint -cp
lucene-core-3.0.3.jar Hello.java
Hello.java:19: class HelloLucene is public, should be declared in a file
named HelloLucene.java
public class HelloLucene {
       ^
Hello.java:23: cannot find symbol
symbol  : constructor StandardAnalyzer()
location: class org.apache.lucene.analysis.standard.StandardAnalyzer
    IndexWriter w = new IndexWriter(index, new StandardAnalyzer(), true, new
MaxFieldLength(250));
                                           ^
Hello.java:33: cannot find symbol
symbol  : constructor StandardAnalyzer()
location: class org.apache.lucene.analysis.standard.StandardAnalyzer
    Query q = new QueryParser("title", new
StandardAnalyzer()).parse(querystr);
                                       ^
Hello.java:33: internal error; cannot instantiate
org.apache.lucene.queryParser.QueryParser.<init> at
org.apache.lucene.queryParser.QueryParser to ()
    Query q = new QueryParser("title", new
StandardAnalyzer()).parse(querystr);
              ^
4 errors


--
View this message in context: 
http://lucene.472066.n3.nabble.com/Writing-new-peice-of-code-in-Lucene-tp2956161p2958052.html
Sent from the Lucene - General mailing list archive at Nabble.com.

Reply via email to