lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Liaqat Ali <>
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));

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:
For additional commands, e-mail:

View raw message