From 13c47537a2ff052f9788abd5025dcc34485c1dd6 Mon Sep 17 00:00:00 2001 From: marcoarment Date: Sun, 5 Nov 2023 14:41:48 -0500 Subject: [PATCH] Identifiable conformance for SearchResult --- Sources/Blackbird/BlackbirdModelSearch.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Sources/Blackbird/BlackbirdModelSearch.swift b/Sources/Blackbird/BlackbirdModelSearch.swift index ee06b5b..2efd2a9 100644 --- a/Sources/Blackbird/BlackbirdModelSearch.swift +++ b/Sources/Blackbird/BlackbirdModelSearch.swift @@ -129,7 +129,9 @@ public struct BlackbirdModelSearchOptions: Sendable { } /// A matching model from a full-text search query, with snippets to highlight the query in the source text. -public struct BlackbirdModelSearchResult: Sendable { +public struct BlackbirdModelSearchResult: Identifiable, Sendable { + public var id: Blackbird.Value { rowid } + private let highlights: Blackbird.ModelRow? private let highlightMode: BlackbirdModelSearchOptions.HighlightMode private let snippets: Blackbird.ModelRow?