Method AddDocument
AddDocument<T1>(IEnumerable<T1>, FieldInfos)
Sugar method for StartDocument(Int32) + WriteField(FieldInfo, IIndexableField) for every stored field in the document.
Declaration
protected void AddDocument<T1>(IEnumerable<T1> doc, FieldInfos fieldInfos)
where T1 : IIndexableField
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<T1> | doc | |
FieldInfos | fieldInfos |
Type Parameters
Name | Description |
---|---|
T1 |