A Query is a series of clauses. A clause may be prefixed by:
full: Full text search.
defs: Only finds symbol definitions.
refs: Only finds symbols.
path: path of the source file.
hist: History log comments
Examples
To find where setResourceMonitors is defined
defs:setResourceMonitors
To find files that use sprintf in usr/src/cmd/cmd-inet/usr.sbin/
refs:sprintf path:usr/src/cmd/cmd-inet/usr.sbin
To find assignments to variable Asign
"Asign="
To find Makefiles where pstack binary is being built
pstack path:Makefile
to search for phrase "Bill Joy":
"Bill Joy"
To find perl files that do not use /usr/bin/perl but something else,
-"/usr/bin/perl" +"/bin/perl"