search: worked on search results

This commit is contained in:
Torkel Ödegaard
2017-12-13 15:51:59 +01:00
parent ccbd18006e
commit 313735bd75
12 changed files with 111 additions and 113 deletions
+1
View File
@@ -15,6 +15,7 @@ type Hit struct {
Id int64 `json:"id"`
Title string `json:"title"`
Uri string `json:"uri"`
Slug string `json:"slug"`
Type HitType `json:"type"`
Tags []string `json:"tags"`
IsStarred bool `json:"isStarred"`
+1
View File
@@ -260,6 +260,7 @@ func makeQueryResult(query *search.FindPersistedDashboardsQuery, res []Dashboard
Id: item.Id,
Title: item.Title,
Uri: "db/" + item.Slug,
Slug: item.Slug,
Type: getHitType(item),
FolderId: item.FolderId,
FolderTitle: item.FolderTitle,