I though I understood, but obviously I missed something. 2004-12-24 - By Jim Lynch
Back A snippet from my program: Document doc = new Document(); Field fContent = new Field("content",content.toString(),false,true,true); Field fTitle = new Field("title",title,true,true,true); Field fDate = new Field("date",date,true,true,false); Document.add(fContent); Document.add(fTitle); Document.add(fDate);
Generate this (and other like it ) error
method add(org.apache.lucene.document.Field ) cannot be referenced from a static context [javac] Document.add(fContent);
Where did I go wrong?
Thanks, Jim.
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ To unsubscribe, e-mail: lucene-user-unsubscribe@(protected) For additional commands, e-mail: lucene-user-help@(protected)
Earn $52 per hosting referral at Lunarpages.
|
|