I need to search for all the documents in my DT database that contain a hyphen character -, but DT returns no results for the search query name:-. I looked up in the documentation for the reason and according to the Appendix > Search Operators section,
Words separated by hyphens are handled like word1word2 OR "word1 word2".
So how can I search for the hyphen character? Is there an escape character that forces DT to take my search query literally, e.g. name:\-?
The indexed-based search which supports operators & wildcards is limited to alpha-numeric characters. But you could e.g. use Name contains - instead (name:~-)
Woah I know DEVONthink has a crazy powerful search engine but it’s crazier than I thought! I need to work through the Search Operators section in the docs.
The easiest way to get used to it is to enable the advanced search, IMHO. Updating the advanced search or the toolbar search will automatically update the other so that it’s not necessary to check the help all the time for the syntax.
Oh right! I read about this functionality in the book Take Control of DEVONthink 3 but completely forgot about its existence Thanks for the precious tip!
Chris @cgrunenberg, another similar question: let us say I want to find files that contain an explicit link to a page, so I search for content:[[My page]] or content:"[[My page]]".