lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Lynch <...@sgi.com>
Subject I though I understood, but obviously I missed something.
Date Fri, 24 Dec 2004 16:30:14 GMT
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@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org


Mime
View raw message