Re: How to add document using Term
Tuesday, April 2, 2002 08:14 PM
An index consists of 1 or more documents, and a document consists of 1 or more fields.
Document and Field are Lucene classes, as is IndexWriter.
The only way to add something to the index is to create a document, add 1 or more fields to it, and then add the resulting document to the index using IndexWriter's addDocument method.