#
Search
Search is a core plugin that helps you find data in your Obsidian vault by using search terms and operators to narrow down results.
By default, you can find Search in the left sidebar ( ). You can also open Search by pressing
Ctrl+Shift+F (Windows/Linux) or Command+Shift+F (macOS).
- Search selected text: If you select text in the editor and open Search with the keyboard shortcut, Search shows you the search results for the selected text.
- Search recent search terms: Open Search with an empty search term to list recent search terms. Click any of them to use the search term again.
Excluded files
Files matching your Excluded files patterns will not appear in Search results.
#
Search terms
A search term is the word or phrase that you enter in the search field. Learning how to write search terms effectively can help you quickly find what you're looking for, even in large vaults. Obsidian only searches the contents of notes and canvases.
Searching paths and filenames
By default, you can only search the paths and filenames of notes and canvases. To search for a path or filename of any file in the vault, use the path or file operator.
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.
To filter results using the less than (<) and greater than (>) operators, surround them with square brackets ([]) or quotes (""):
meeting [duration:<5]returns files where meeting is present, and duration is less than 5.meeting [duration:>5]returns files where meeting is present, and duration is greater than 5.
Explain search term
If you need to troubleshoot a complex search term, you can click Explain search term in Search for an explanation of your search term.
#
Search operators
Search operators enable more fine-grained search terms to filter your results even more.
Some operators even allow you to add a nested search term within parentheses, for example: task:(call OR email).
#
Search properties
You can use data stored in Properties in your search terms.
Use brackets around a property name [property] to return files with that property:
[aliases]returns files that contain thealiasesproperty
Use brackets and a colon [property:value] to return files with that property and value:
[aliases:Name]returns files where thealiasesproperty value isName
Use null as a value to find properties that have no value:
[aliases:null]returns files where thealiasesproperty exists but has no value
[!info]+ Empty values The
nulloperator works when a property is empty (e.g.,aliases:), but not when the property contains empty quotes ("") or empty brackets ([]).
Both property and value allow sub-queries, such as parentheses for grouping, the OR operator, double-quotes for exact matching, and regex.
[status:Draft OR Published]returns files where thestatusproperty value isDraftorPublished
#
Change case sensitivity
By default, search terms are not case sensitive. If you want to search for the exact case of your search term, select Match case ( ) inside the search bar.
This setting can be toggled. If Match case icon is highlighted, that means you’re currently doing a case sensitive search.
#
Change result sort order
- Enter a
search term . - Under the search field, select the dropdown on the right.
- Select the sort order you want. Default is "File name (A to Z)".
The following options are available:
- File name (A to Z)
- File name (Z to A)
- Modified time (new to old)
- Modified time (old to new)
- Created time (new to old)
- Created time (old to new)
#
Copy search results
- Enter a
search term . - Under the search field, select the three dots icon next to the number of results.
- Select Copy search results.
#
Use regular expressions
A regular expression is a set of characters that describe a text pattern. To use regular expressions in your search term, surround the expression with forward slashes (/).
/\d{4}-\d{2}-\d{2}/matches an ISO 8601 date, such as 2022-01-01.
You can even combine regular expressions with search operators:
path:/\d{4}-\d{2}-\d{2}/returns files with a date in the file path.
For more information on how to write regular expressions, refer to FreeCodeCamp's Practical Regex guide or Mozilla's Regular expressions.
[!info]+ JavaScript-flavored regular expressions Regular expressions come in different flavors that may look different from each other. Obsidian uses JavaScript-flavored regular expressions.
#
Configure search settings
To configure Search, select Search settings ( ) on the right side of the search bar to see the toggles.
#
Embed search results in a note
To embed search results in a note, add a query code block:
```query
embed OR search
```
Obsidian Publish doesn't support embedded search results. To see a live rendered example, use the code block above within your vault.
See also
With the Backlinks plugin, you can see all the backlinks for the active note.
Bookmarks is a core plugin that lets you quickly access items that you use often. A bookmark is a "shortcut" that immediately takes you the
This page lists the core plugins that come installed with Obsidian, and community plugins they also maintain.
Learn how you can embed other notes and media into your notes. By embedding files in your notes, you can reuse content across your vault.
Graph view is a core plugin that lets you visualize the relationships between the notes in your vault.
Obsidian URI is a custom URI protocol supported by Obsidian that lets you trigger various actions, such as opening a note or creating a note.
Page preview is a core plugin that lets you preview a page when you hover the cursor over an internal link, without needing to navigate to that page.
Properties allow you to organize information about a note. Properties contain structured data such as text, links, dates, checkboxes, and numbers.
Properties view is a core plugin that adds two sidebar views that you can use to manage Properties.
Obsidian Publish has minimal support for Community plugins.
Learn how to customize Obsidian through the Settings interface.
Tags are keywords or topics that help you quickly find the notes you want.