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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]