Skip to content

Commit

Permalink
Fix failing to search note title
Browse files Browse the repository at this point in the history
  • Loading branch information
msp301 committed Aug 17, 2023
1 parent 382a355 commit d313c7e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion notebook/search.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ func (book *Notebook) Search(query ...string) []Result {
matched := false
switch val := vertex.Properties["Value"].(type) {
case parser.Note:
paragraphs := extractParagraphs(val.Content)
content := val.Title + "\n\n" + val.Content
paragraphs := extractParagraphs(content)
PARAGRAPH:
for _, paragraph := range paragraphs {
termsMatched := 0
Expand Down

0 comments on commit d313c7e

Please sign in to comment.