Hello,
i'm trying to compile "InMemoryExample.java" of lucene search
but i'm getting these errors!!
"C:\Java\ant_home>javac InMemoryExample.java
InMemoryExample.java:82: cannot find symbol
symbol : method UnIndexed(java.lang.String,java.lang.String)
location: class org.apache.lucene.document.Field
doc.add(Field.UnIndexed("title", title));
^
InMemoryExample.java:89: cannot find symbol
symbol : method Text(java.lang.String,java.io.StringReader)
location: class org.apache.lucene.document.Field
doc.add(Field.Text("content", new StringReader(content)));
^
InMemoryExample.java:101: parse(java.lang.String) in org.apache.lucene.queryPars
er.QueryParser cannot be applied to (java.lang.String,java.lang.String,org.apach
e.lucene.analysis.standard.StandardAnalyzer)
Query query = QueryParser.parse(queryString, "content", new StandardAnal
yzer());"
i have set related classpath for lucene packages, but still i'm getting these errors!
can any one help me?
Thanks,
Amit B.