SearchResult

data class SearchResult<Document>(val document: Document, val score: Score, val id: String? = null, val metadata: JsonObject? = null, val namespace: String? = null)(source)

Represents a single result returned from a storage search operation.

Type Parameters

Document

the type of the stored document

Constructors

Link copied to clipboard
constructor(document: Document, score: Score, id: String? = null, metadata: JsonObject? = null, namespace: String? = null)

Properties

Link copied to clipboard

the matched document content

Link copied to clipboard
val id: String?

unique identifier of the matched document in the storage

Link copied to clipboard

optional JSON metadata associated with the document

Link copied to clipboard

optional namespace the document belongs to, used for logical isolation

Link copied to clipboard

relevance score indicating how well the document matches the search query