Just installed and trying to figure out a simple query

I’m trying to query only the blocks/paragraphs/lines that contain the word Mindset (not only tagged that). I’ve entered it as a search term in the search bar and there are some linked mentions, but many don’t contain the word mindset. Is there a way to search all of Logseq and only show lines where that word is contained and the 2 lines before and 2 lines after?

It looks like this and I’m not sure why other results are there as they don’t contain that word or #mindset.

Welcome! What’s the issue with {{query "Mindset"}}?

Hi, thanks. I tried that one and got proper results. Also got results that were long docs where that word wasn’t mentioned for many many lines. I think it’s time I read up on queries in Logseq :v:

1 Like