ข้ามไปยังเนื้อหา

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 IKnowledgeDocumentProvider

Gets the collection identifier served by this provider.

string CollectionId { get; }

string

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)

context KnowledgeDocumentProviderContext

The provider context for the current indexing request.

cancellationToken CancellationToken

A token that can cancel the document load.

ValueTask<IReadOnlyList<KnowledgeDocument>>

The current document set that should replace the collection index.