Re: doubt in adding a field in document

2009-03-07 Thread Erick Erickson
Didn't you post this already? Have you really looked at the Field documentation as was suggested last time? The short form is that there is no Field constructor like new Field("path",textFiles[i].getPath()); For plain strings, use the form: *Field

doubt in adding a field in document

2009-03-07 Thread nitin gopi
hi all, i am having error in my code. the line giving error is bold in the code.the error is cannot find symbol. thank you nitin import java.io.File; import java.io.FileReader; import java.io.Reader; import java.util.Date; // import org.apache.lucene; import org.apache.lucene.analysis.Analyze