The Finder's sidebar search for "Recents" (in High Sierra) is a raw query, which can be found here:
The query string goes like this:
(kMDItemLastUsedDate = "*") && ((kMDItemContentTypeTree = public.content) || (kMDItemContentTypeTree = "com.microsoft.*"cdw) || (kMDItemContentTypeTree = public.archive))
This also looks for Microsoft stuff. The relevant part of the query is:
kMDItemContentTypeTree = "com.microsoft.*"cdw
What does the "cdw" part of this query accomplish? And what does it stand for?
I found another mention here for
! -interpret Force the provided query string to be interpreted as if the user ! had typed the string into the Spotlight menu. ! For example, the string "search" would produce the following ! query string: ! (* = search* cdw || kMDItemTextContent = search* cdw)