lucene-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ravishekhar <ravishekhar...@gmail.com>
Subject Re: Writing new peice of code in Lucene
Date Wed, 18 May 2011 18:33:18 GMT
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.

Mime
View raw message