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 work
returns files that contain bothmeeting
andwork
.meeting OR work
returns files that contain eithermeeting
orwork
.
You can even combine the two in the same search term.
meeting work OR meetup personal
returns files for work meetings and personal meetups.
You can use parentheses to control the priority of each expression.
meeting (work OR meetup) personal
returns files that containmeeting
,personal
, and eitherwork
ormeetup
.
To exclude, or negate, a word from the search results, add a hyphen (-
) in front of it:
meeting -work
returns files that containmeeting
but notwork
.
You can exclude multiple expressions:
meeting -work -meetup
returns files that containmeeting
but notwork
ormeetup
.
You can exclude a combination of expressions using parentheses:
meeting -(work meetup)
returns files that containmeeting
but not bothwork
andmeetup
.
#obsidian #howto