Search Syntax Help

If you are experiencing problems with "Everything", post here for assistance.
void
Site Admin
Posts: 3180
Joined: Fri Oct 16, 2009 11:31 pm

Search Syntax Help

Postby void » Mon May 06, 2013 4:39 am

Operators

AND
Use a space for AND.
For example, to search for ABC AND 123:

Code: Select all

ABC 123


OR
Use a | for OR.
For example, to search for ABC OR 123:

Code: Select all

ABC | 123


NOT
Use a ! for NOT.
For example, to exclude ABC from your search:

Code: Select all

!abc


Spaces
Use double quotes (") to escape spaces
For example, the search for the exact phrase ABC 123

Code: Select all

"ABC 123"


Grouping:
Use < and > to group expressions.
For example, to search for mp3 files on your c: and d: drive:

Code: Select all

<c:|d:> *.mp3


Precedence:
<>
!
AND
OR

Examples:
!A !B == (NOT A) AND (NOT B)
A|B C == A OR (B AND C)
A B | C D == (A AND B) OR (C AND D)

void
Site Admin
Posts: 3180
Joined: Fri Oct 16, 2009 11:31 pm

Re: Search Syntax

Postby void » Mon May 06, 2013 4:39 am

Wildcards

*
Matches zero or more characters.

?
Matches one character.

*.
Matches filenames with no extension.

*.*
Same as *

When using wildcards the entire filename is matched.
Please make sure you use a * prefix and * suffix if you want to find a wildcard expression anywhere in the filename.

void
Site Admin
Posts: 3180
Joined: Fri Oct 16, 2009 11:31 pm

Re: Search Syntax

Postby void » Mon May 06, 2013 4:39 am

Macros:

quot:
Literal double quote (")

apos:
Literal apostrophe (')

amp:
Literal ampersand (&)

lt:
Literal less than (<)

gt:
Literal greater than (>)

#x:
Literal unicode character code x.
For example, to search for ¿:

Code: Select all

#191:


You can make your own custom macros with filters and bookmarks.

void
Site Admin
Posts: 3180
Joined: Fri Oct 16, 2009 11:31 pm

Re: Search Syntax

Postby void » Mon May 06, 2013 4:39 am

Modifiers

ascii:
noascii:
utf8:
Enable or disable fast ASCII case comparisons.
Fast ASCII comparisons ignore some case mappings between non-ASCII and ASCII characters (I with dot and i).

case:
nocase:
Match or ignore case.
For example, match ABC but not abc:

Code: Select all

case:ABC


diacritics:
nodiacritics:
Match or ignore diacritical marks.
For example: nodiacritics:a = á

file:
folder:
nofileonly:
nofolderonly:
Match files or folders only.

path:
nopath:
Match the entire path or just the file name.

regex:
noregex:
Enable or disable regex.
For example:

Code: Select all

regex:^foo$


wholefilename:
nowholefilename:
nowfn:
wfn:
Match the entire filename or allow partial matches.

wholeword:
nowholeword:
noww:
ww:
Match whole words only or allow partial matches.

nowildcards:
wildcards:
Allow or disallow wildcards.

void
Site Admin
Posts: 3180
Joined: Fri Oct 16, 2009 11:31 pm

Re: Search Syntax

Postby void » Mon May 06, 2013 4:40 am

Functions

attrib:<attributes>
attributes:<attributes>
Search for files and folders that have the specified attributes set.

<attributes> can be zero or more of the following:
R Read only
H Hidden
S System
D Directory
A Archive
V Device
N Normal
T Temporary
P Sparse file
L Reparse point
C Compressed
O Offline
I Not content indexed
E Encrypted

For example, to find read only files:

Code: Select all

attrib:R


datecreated:<date>
dc:<date>
datemodified:<date>
dm:<date>
recentchange:<date>
rc:<date>
Search for files and folders with the specified creation date, modified date or date recently changed.

<date> can be one of the following formats:
today
yesterday
tomorrow
<last|past|prev|current|this|coming|next><week|month|year>
<last|past|prev|coming|next><x><minutes|hours|weeks|months|years>
january|february|march|april|may|june|july|august|september|october|november|december
jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec
sunday|monday|tuesday|wednesday|thursday|friday|saturday
sun|mon|tue|wed|thu|fri|sat
unknown
year
month/year
day/month/year

For example, to find files modified today:

Code: Select all

dm:today


For example, to find files modified between August 20th 2009 and December 31st 2010:

Code: Select all

dm:20/8/2009-31/12/2010


For example, to find files modified in the last 10 minutes:

Code: Select all

dm:last10minutes


For example, to find files modified on June 10th 2000:

Code: Select all

dm:10/6/2000


For example, to find files modified after May 4th 2013:

Code: Select all

dm:>4/5/2013


For example, to find files modified last week (starting from Sunday)

Code: Select all

dm:lastweek


For example, to find files modified last April

Code: Select all

dm:april


dupe:
Search for duplicated filenames.

empty:
Search for empty folders.

ext:<list>
Search for files with a matching extension in the specified semi-colon delimited extension list.

For example, to find files with the following extensions: jpg, bmp, png and gif:

Code: Select all

ext:jpg;bmp;png;gif


fsi:<index>
Search for files and folders in the specified zero based internal file system index.

len:<length>
Search for files and folders that match the specified filename length.
For example, to find files with full paths that are longer than 260 characters (the maximum for Explorer):

Code: Select all

path:len:>260


parents:<count>
Search for files and folders with the specified number of parent folders.
for example, find files and folders that belong to a root folder:

Code: Select all

parents:1


root:
Search for files and folders with no parent folders.

size:<size>
Search for files with the specified size in bytes.

For example, to find files larger than 10MB:

Code: Select all

size:>10mb


For example, to find files between 20GB and 30GB:

Code: Select all

size:20gb-30gb


For example, to find files smaller than 1MB:

Code: Select all

size:<1mb


type:<type>
Search for files and folders with the specified type.

For example, to find files with image in the type:

Code: Select all

type:"Image"

void
Site Admin
Posts: 3180
Joined: Fri Oct 16, 2009 11:31 pm

Re: Search Syntax Help

Postby void » Mon May 06, 2013 5:46 am

Search tips

Search the full path without enabling match path

Code: Select all

\download

This will find all files that are in a download folder.

Faster date/size searching
Since using a date/size search can be extremely slow, try reducing the number of files by searching for a path first:

Code: Select all

\download dm:today


Do not search subfolders
Example: search for the folder c:\abc, but do not include subfolders:

Code: Select all

c:\abc !c:\abc\*\*

3o5v9867zsi378
Posts: 2
Joined: Wed Feb 04, 2015 12:51 am

Re: Search Syntax Help

Postby 3o5v9867zsi378 » Wed Feb 04, 2015 1:02 am

hi

i'm getting no results for the dm:today query or the "size:" queries ...

i've read the help but i can't work out what the stupid thing i'm doing is ...

would be very grateful for some help

love the program btw!

3o5v9867zsi378

3o5v9867zsi378
Posts: 2
Joined: Wed Feb 04, 2015 12:51 am

Re: Search Syntax Help

Postby 3o5v9867zsi378 » Wed Feb 04, 2015 1:30 am

hi again

not sure why but all the searches have now started working ... i upgraded from 1.2 to 1.3 ... could that have done it?

was a new index created?

anyhow, all working now, thanks

3o5v9867zsi378

Ambaquista
Posts: 2
Joined: Fri Apr 17, 2015 1:58 pm

Re: Search Syntax Help

Postby Ambaquista » Fri Apr 17, 2015 2:55 pm

How to search ONLY in the filename, excluding the extension?

Example:
I´ve 1000+s of files *.MHT (all included HTML) and I need to find files with "mht" in the name, files about the MHT format, p. ex.

Any possibility, in Everything?

Thanks

therube
Posts: 1608
Joined: Thu Sep 03, 2009 6:48 pm

Re: Search Syntax Help

Postby therube » Fri Apr 17, 2015 7:11 pm

Code: Select all

mht  !.mht

Search for "mht", but not ".mht".

Note that it would NOT find a file named: testing.mht.123.MHT

You could also mess around with Regular Expressions, if need be.

Ambaquista
Posts: 2
Joined: Fri Apr 17, 2015 1:58 pm

Re: Search Syntax Help

Postby Ambaquista » Fri Apr 17, 2015 8:35 pm

Thank you, it works!
I´ve tried mht!.mht (without space before the !) and didn´t work.
Works also with just one space before the !
Thank you again

gggirlgeek
Posts: 29
Joined: Tue Dec 28, 2010 4:54 pm

Re: Search Syntax Help

Postby gggirlgeek » Sat Jun 06, 2015 4:45 am

Just came across another of void's clever Macros in a post here.

child:<string>


Folders containing objects that match the specified search

for example, find folders that contain .mp3 files

Code: Select all

child:*.mp3


find folders that contain objects created in the last hour

Code: Select all

child:* dc:last1hours

(notice the space before the next filter!)

Hmm
Posts: 1
Joined: Sat Aug 20, 2016 9:01 pm

Re: Search Syntax Help

Postby Hmm » Sat Aug 20, 2016 9:07 pm

Perhaps I am missing something but none of these more complex syntax work. Where are you supposed to type them in? For example, I am trying to find files created or modified on 2015-10-31

I even tried this synatx with no results: 1:* dc:last1hours. I entered it in the search bar. The only search that works is wild cards or typing normal file names.

void
Site Admin
Posts: 3180
Joined: Fri Oct 16, 2009 11:31 pm

Re: Search Syntax Help

Postby void » Sun Aug 21, 2016 4:02 am

Where are you supposed to type them in?


Type your searches into the search box at the top of Everything.

For example, I am trying to find files created or modified on 2015-10-31


How are dates displayed on your computer? 31/10/2015? 10/31/2015? 2015/10/31?

Type in dates in the same format as how they are displayed on your computer.

Please try searching for:
dm:31/10/2015

Use / to separate day/month/year.

I even tried this synatx with no results: 1:* dc:last1hours. I entered it in the search bar. The only search that works is wild cards or typing normal file names.


1:* should not match anything, what are you trying to search for here?

Note: Please make sure regex is disabled from the Search menu, search functions will not work when regex is enabled.
Please try the Everything 1.4 beta and look at Search -> Advanced Search... to help with search syntax.

wddt
Posts: 6
Joined: Tue Jan 28, 2014 3:54 am

Re: Search Syntax Help

Postby wddt » Mon Aug 29, 2016 1:34 pm

This is VERY basic, but I had trouble with it so someone else might. I couldn't seem to get Everything to "sort by date" and I was going crazy. Turns out it was the way I had E set up. When I made ALL the Date Columns VISIBLE (modified, created, accessed and recently changed), the date-related functions worked. (Answer to an un-asked question, I guess.)

marius
Posts: 1
Joined: Mon Jan 23, 2017 6:28 pm

Re: Search Syntax Help

Postby marius » Mon Jan 23, 2017 6:41 pm

dm:april shows modified in last april.
is it possible to show files modified in april(month) from all years?
thanks!

Just Visiting
Posts: 4
Joined: Sat Jul 16, 2011 10:38 pm

Search specific drive only

Postby Just Visiting » Mon May 22, 2017 11:50 pm

I can't figure this out. Intuitively, one should be able to enter "K:*.*" without quotes. But that is not an operation Everything understands.

What is the workaround?

void
Site Admin
Posts: 3180
Joined: Fri Oct 16, 2009 11:31 pm

Re: Search Syntax Help

Postby void » Tue May 23, 2017 12:23 am

k:*.* should find all files on your k: drive. Please make sure you have regex disabled from the Search menu.
searching for k: will also work.

Do you have any active filters or other search options enabled from the Search menu?


Return to “Support”