Method Add
Add(IIndexableField)
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(String) and RemoveFields(String) 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.
Declaration
public void Add(IIndexableField field)
Parameters
Type | Name | Description |
---|---|---|
IIndexableField | field |