lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Saroja Kanta Maharana" <saroja.kanta.mahar...@gmail.com>
Subject Re: hi compile error
Date Tue, 13 Feb 2007 08:39:41 GMT
Hi,

   I also new to lucene. As see your error, It may be the Lucene version
problem. Which version
 r u using? means which which jar file ? Will you say me the Lucene Jar file
name ??



Regards

Saroj

On 2/13/07, Doron Cohen <DORONC@il.ibm.com> wrote:
>
> Hi ashwin,
>
> ashwin kumar wrote:
>
> >       File   fileDir  = new File("C:\\files_to_index ");//fileDir is the
>
> Notice a redundant trailing space here.
>
> >                     document.add(Field.Text("content",textReader));
>
> > D:\ASHWIN\testing\searching\TextFileIndexer.java:40: cannot find symbol
> > symbol  : variable Field
> > location: class TextFileIndexer
> >        document.add(Field.Text("content",textReader));
> >                     ^
>
> Field.Text was deprecated in Lucene 1.9.1 and removed in Lucene 2.0.
> So if Lucene 2.0 is used this explains the compilation error.
>
> See also FAQ Entry "How do I get code written for Lucene 1.4.x to work
> with
> Lucene 2.x?"
>
> http://wiki.apache.org/jakarta-lucene/LuceneFAQ#head-86d479476c63a2579e867b75d4faa9664ef6cf4d
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>


-- 
Regards
Saroja kanta Maharana
+919886750538

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message