lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Liaqat Ali <liaqatalim...@gmail.com>
Subject Help needed
Date Fri, 23 Nov 2007 16:36:47 GMT

I m facing problem while using a small indexing example;

        IndexWriter writer =
                    new IndexWriter(indexDir, analyzer, createFlag);
            Document document  = new Document();
            document.add(Field.Text("fieldname", text));
            writer.addDocument(document);
            writer.close();



When i run that small program, this portion generates error.

*Can not find symbol:   method Text (java.lang.String, java.lang.String)
location: class org.apache.lucene.document.Field
document.add(Field.Text("fieldname", text));
*

Kindly guide me in this regard

Liaqat Ali

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message