1.4 KiB
Each word in the search term is matched independently within each file. To search for an exact phrase, surround it with quotes, for example "star wars". To search for quoted text within an exact phrase, you can escape the quotes by adding a backslash (\) in front of the quote, for example "they said \"hello\" to each other".
You can control whether to return files that contain all the words in your search term, or any of the words:
meeting workreturns files that contain bothmeetingandwork.meeting OR workreturns files that contain eithermeetingorwork.
You can even combine the two in the same search term.
meeting work OR meetup personalreturns files for work meetings and personal meetups.
You can use parentheses to control the priority of each expression.
meeting (work OR meetup) personalreturns files that containmeeting,personal, and eitherworkormeetup.
To exclude, or negate, a word from the search results, add a hyphen (-) in front of it:
meeting -workreturns files that containmeetingbut notwork.
You can exclude multiple expressions:
meeting -work -meetupreturns files that containmeetingbut notworkormeetup.
You can exclude a combination of expressions using parentheses:
meeting -(work meetup)returns files that containmeetingbut not bothworkandmeetup.
#obsidian #howto