Skip to content

Class KnowledgeQueryResult

Namespace: Cephalon.Abstractions.Retrieval
Assembly: Cephalon.Abstractions.dll

Describes the result of a managed retrieval query.

public sealed record KnowledgeQueryResult : IEquatable<KnowledgeQueryResult>

objectKnowledgeQueryResult

IEquatable<KnowledgeQueryResult>

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

KnowledgeQueryResult(string, string, DateTimeOffset, IReadOnlyList<KnowledgeQueryMatch>, int, IReadOnlyDictionary<string, string>)

Section titled “ KnowledgeQueryResult(string, string, DateTimeOffset, IReadOnlyList<KnowledgeQueryMatch>, int, IReadOnlyDictionary<string, string>)”

Describes the result of a managed retrieval query.

public KnowledgeQueryResult(string CollectionId, string QueryText, DateTimeOffset QueriedAtUtc, IReadOnlyList<KnowledgeQueryMatch> Matches, int TotalIndexedDocuments, IReadOnlyDictionary<string, string> Metadata)

CollectionId string

The collection identifier that was queried.

QueryText string

The query text supplied by the caller.

QueriedAtUtc DateTimeOffset

The UTC timestamp when the query executed.

Matches IReadOnlyList<KnowledgeQueryMatch>

The ranked matches returned by the managed query engine.

TotalIndexedDocuments int

The number of indexed documents available at query time.

Metadata IReadOnlyDictionary<string, string>

Optional operator-facing metadata captured with the query result.

The collection identifier that was queried.

public string CollectionId { get; init; }

string

Gets a value indicating whether the query returned at least one match.

public bool HasMatches { get; }

bool

The ranked matches returned by the managed query engine.

public IReadOnlyList<KnowledgeQueryMatch> Matches { get; init; }

IReadOnlyList<KnowledgeQueryMatch>

Optional operator-facing metadata captured with the query result.

public IReadOnlyDictionary<string, string> Metadata { get; init; }

IReadOnlyDictionary<string, string>

The UTC timestamp when the query executed.

public DateTimeOffset QueriedAtUtc { get; init; }

DateTimeOffset

The query text supplied by the caller.

public string QueryText { get; init; }

string

The number of indexed documents available at query time.

public int TotalIndexedDocuments { get; init; }

int