Skip to content

Commit

Permalink
feat(server): ✨ add tags and tags suggestions to Meilisearch index
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan6erbond committed May 14, 2023
1 parent 227cb16 commit 8dee322
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions server/pkg/meilisearch/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@ func getPostDocument(app *pocketbase.PocketBase, post *models.Record) (map[strin

for _, f := range files {
fileDocuments = append(fileDocuments, map[string]interface{}{
"id": f.GetString("id"),
"name": f.GetString("name"),
"description": f.GetString("description"),
"id": f.GetString("id"),
"name": f.GetString("name"),
"description": f.GetString("description"),
"tagsSuggestions": f.GetString("tagsSuggestions"),
})
}

Expand All @@ -33,5 +34,6 @@ func getPostDocument(app *pocketbase.PocketBase, post *models.Record) (map[strin
"title": post.GetString("title"),
"author": author.GetString("username"),
"files": fileDocuments,
"tags": post.Get("tags"),
}, nil
}

0 comments on commit 8dee322

Please sign in to comment.