DotLucene 1.4 API Documentation |

# Document.Add Method

Adds a Field to a document. Several fields may be added with the same name. In this case, if the fields are indexed, their text is treated as though appended for the purposes of search.

Note that add like the removeField(s) methods only makes sense prior to adding a document to an index. These methods cannot be used to change the content of an existing index! In order to achieve this, a document has to be deleted from an index and a new changed version of that document has to be added.

public void Add(
Field field
);

#### See Also

Document Class | Lucene.Net.Documents Namespace