Search Syntax

Discussion related to "Everything" 1.5 Alpha.
Post Reply
void
Developer
Posts: 18844
Joined: Fri Oct 16, 2009 11:31 pm

Search Syntax

Post by void »

Operators
Search Terms
Wildcards
Macros
Character Entities



Operators

space
AND two search terms together.
For example:
abc 123 searches for abc AND 123



|
OR two search terms together.
For example:
abc|123 searches for abc OR 123



!
NOT a search term.
For example:
!abc searches for NOT abc



< >
Group search terms together.
For example:
!<ABC 123> searches for NOT ( abc AND 123)



" "
Escape operator characters.
For example:
"ABC 123" searches for the literal text ABC 123



Search Terms

The search is broken into search terms using search operators.

Search terms can be literal text or Search Functions.

For example:
ABC
searches for the literal text
ABC
.
date-modified:today
searches for files and folders modified today.

Search terms can be prefixed with Search Modifiers to change the search behavior.

For example:
case:ABC
matches uppercase only text
ABC
.



Wildcards

*
Matches zero or more characters (except \).


**
Matches zero or more characters.


?
Matches one character (except \).



The whole filename is matched when using a wildcard.

Examples:

*.mp3
match mp3 files.
foo*
match files and folders starting with foo.
stem:*bar
match files and folders ending with bar. (ignoring extension)



Macros

audio:
Search for audio files.


zip:
Search for compressed files.


doc:
Search for document files.


exe:
Search for executable files.


image:
Search for image files.


video:
Search for video files.



Examples:

audio:
search for audio files.
audio:|video:
search for audio or video files.




Character Entities

&sp:
Literal space ( )


&vert:
Literal vertical line (|)


&excl:
Literal exclamation mark (!)


&lt:
Literal less than (<)


&gt:
Literal greater than (>)


&quot:
Literal double quote (")


&#<n>:
Literal unicode character <n> in decimal.


&#x<n>:
Literal unicode character <n> in hexadecimal.



Examples:

C:\Program&sp:Files
Search in
C:\Program files
.
Same as searching for
"C:\Program Files"
.
Using a space would break the search into
C:\Program
AND
files
.

&excl:readme.txt
Search files and folders with a filename matching !readme.txt
Same as searching for
"!readme.txt"

Using ! would mean NOT.

content:&quot:foo&quot:
Search for files that contain
"foo"
.
Quotes are included in the search.

diacritics:&#xad:
Search for files and folders that contain a Soft hyphen (-) in the filename.

Character Entities



Search Functions
Search Modifiers
Post Reply