Hello,
i'm trying to compile "InMemoryExampl e.java" of lucene search
but i'm getting these errors!!
"C:\Java\ant_ho me>javac InMemoryExample .java
InMemoryExample .java:82: cannot find symbol
symbol : method UnIndexed(java. lang.String,jav a.lang.String)
location: class org.apache.luce ne.document.Fie ld
doc.add(Field.U nIndexed("title ", title));
^
InMemoryExample .java:89: cannot find symbol
symbol : method Text(java.lang. String,java.io. StringReader)
location: class org.apache.luce ne.document.Fie ld
doc.add(Field.T ext("content", new StringReader(co ntent)));
^
InMemoryExample .java:101: parse(java.lang .String) in org.apache.luce ne.queryPars
er.QueryParser cannot be applied to (java.lang.Stri ng,java.lang.St ring,org.apach
e.lucene.analys is.standard.Sta ndardAnalyzer)
Query query = QueryParser.par se(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.
i'm trying to compile "InMemoryExampl e.java" of lucene search
but i'm getting these errors!!
"C:\Java\ant_ho me>javac InMemoryExample .java
InMemoryExample .java:82: cannot find symbol
symbol : method UnIndexed(java. lang.String,jav a.lang.String)
location: class org.apache.luce ne.document.Fie ld
doc.add(Field.U nIndexed("title ", title));
^
InMemoryExample .java:89: cannot find symbol
symbol : method Text(java.lang. String,java.io. StringReader)
location: class org.apache.luce ne.document.Fie ld
doc.add(Field.T ext("content", new StringReader(co ntent)));
^
InMemoryExample .java:101: parse(java.lang .String) in org.apache.luce ne.queryPars
er.QueryParser cannot be applied to (java.lang.Stri ng,java.lang.St ring,org.apach
e.lucene.analys is.standard.Sta ndardAnalyzer)
Query query = QueryParser.par se(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.
Comment