Interface IIndexWriter
- Namespace
- Dynamicweb.Indexing
- Assembly
- Dynamicweb.Core.dll
Defines IndexWriter behaviour and data
public interface IIndexWriter
Methods
AddDocument(IndexDocument)
Defines Add document method contract
void AddDocument(IndexDocument document)
Parameters
documentIndexDocumentIndex document instance
Remarks
A writer may read the document later, on another thread, and report a failure from Close(). Don't change the document after adding it, and only add lazily evaluated values that are safe to evaluate there.
AddOrUpdateDocument(IndexDocument, string, string)
Defines Add or update document method contract
void AddOrUpdateDocument(IndexDocument document, string keyFieldName, string keyFieldValue)
Parameters
documentIndexDocumentIndex document instance
keyFieldNamestringKey field name
keyFieldValuestringKey field value
Close()
Defines close method contract
void Close()
Open(bool)
Defines open method contract
void Open(bool openForAppend)
Parameters
openForAppendbool