Search Operators

DEVONthink is well known for its powerful search functions. Not only does is support search prefixes, but also extended operators like booleans, parentheses, and wildcards. The syntax of the operators is compatible to DEVONagent and EasyFind, the Finder, Spotlight, common search engines as well as common programming languages such as C, C++, Objective-C, Java, and JavaScript. The complexity of the query is unlimited.

Case-Insensitivity: You are free to use capitalization as you wish, e.g., for proper names, but DEVONthink will ignore case when interpreting the query. However, the operators listed below are case-sensitive, so age before beauty is not the same as age BEFORE beauty.

White Space Handling: Words linked by non-white separators (e.g., page-index or page_id) are treated like phrases put into "quotes". Words separated by hyphens are handled like word1word2 OR "word1 word2". Characters separated by dots are considered to be abbreviations and therefore handled like words separated by hyphens, e.g., the term t.a.t.u is equal to "t a t u" OR tatu.

Wildcards

To make searching more flexible, you can replace parts of words with wildcards. For example, you can search for plural forms of words without having to type, e.g., "dog" and "dogs". The available wildcards are:

Boolean Operators

The operators (often called Boolean operators) are words or symbols that establish logical rules for the terms in the search query. If no operator is given, DEVONthink infers AND. The available Boolean operators are:

Besides the classic Boolean operators, DEVONthink uses a number of operators that usually are found in high-end databases. Use these operators as a replacement for AND and "quotes" to fine tune your query.

For convenience, some of these operators can also be abbreviated using commonly used symbols:

Operators are evaluated in the following priority: parenthesis > phrase/hyphens > (NOT) BEFORE/AFTER/NEAR/NEXT > NOT > AND/OR/XOR/EOR. Terms with same priority but without parenthesis are evaluated from left to right.

Examples

By using any or all of the operators and rules laid out above you can create complex queries that find the exact information you're looking for. Here are some example queries that show how the operators are used.

This query looks for all documents that contain the words "devonian" and "dinosaurs".

This query looks for documents that contain the words "Steve" and "Jobs" no farther ten words away from each other, as well as the word "iMac" (no specific position relative to Steve and Jobs), but not the word "MacBook". The word "Pro" does not need to occur, but if it does, the document is ranked higher in the list of search results.

This query looks for documents containing the word "Paracetamol" near (within 10 words) to words either starting with "effect" (and so also "effects") or "impact". In addition, the document needs to contain the word "side" or any word starting with "second" located within two words range of any word starting with "effect".