Interface IKnowledgeDocumentProvider
เนื้อหานี้ยังไม่ได้แปลเป็นภาษาไทย แสดงเป็นภาษาอังกฤษแทน
Namespace: Cephalon.Retrieval.Services
Assembly: Cephalon.Retrieval.dll
Loads documents for one knowledge collection so the retrieval runtime can build a managed index.
public interface IKnowledgeDocumentProviderProperties
Section titled “Properties”CollectionId
Section titled “ CollectionId”Gets the collection identifier served by this provider.
string CollectionId { get; }Property Value
Section titled “Property Value”Methods
Section titled “Methods”LoadDocumentsAsync(KnowledgeDocumentProviderContext, CancellationToken)
Section titled “ LoadDocumentsAsync(KnowledgeDocumentProviderContext, CancellationToken)”Loads the current document set for the requested collection.
ValueTask<IReadOnlyList<KnowledgeDocument>> LoadDocumentsAsync(KnowledgeDocumentProviderContext context, CancellationToken cancellationToken = default)Parameters
Section titled “Parameters”context KnowledgeDocumentProviderContext
The provider context for the current indexing request.
cancellationToken CancellationToken
A token that can cancel the document load.
Returns
Section titled “Returns”ValueTask<IReadOnlyList<KnowledgeDocument>>
The current document set that should replace the collection index.