what does "-" mean in everything command

General discussion related to "Everything".
Post Reply
slarkmonk
Posts: 4
Joined: Mon Aug 26, 2024 1:50 am

what does "-" mean in everything command

Post by slarkmonk »

Hello,

I'm not sure the function of "-" symbol.

for example, when I type "doc:everything" to search in my computer, there are 8 results,


but just add a minus symbol in the command and use "doc:everything -" command search again, there are just 6 results left.

And there are some command I use to experiment,
"d: datemodified:today" "d: datemodified:today -"
"parent:d: childcount:<100" "parent:d: childcount:<100 -"

the version include "-" is always less result than it versus, and the order is doesn't matter.

PS:
1:I'm a noob in forum and don't know how to insert local pictures in the article, click the image icon,there are "Image",what content should write in the middle of label?
2:And I tried to use attachments add files, it seemed fail too.
void
Developer
Posts: 16745
Joined: Fri Oct 16, 2009 11:31 pm

Re: what does "-" mean in everything command

Post by void »

- is not an Everything operator.

- will match a literal - in the filename.



Everything operators:
space = AND
| = OR
! = NOT
< > = Grouping
" " = escape operators.



To upload an image:
Click the Attachments tab.
Click Add files.
Select your image file and click Open.
Leave the file comment empty.
Click the place inline button.
It will paste the following text in your post:

Code: Select all

[attachment=0]my-image.png[/attachment]
This text will be replaced with your image when submitted.
slarkmonk
Posts: 4
Joined: Mon Aug 26, 2024 1:50 am

Re: what does "-" mean in everything command

Post by slarkmonk »

void wrote: Mon Aug 26, 2024 3:21 am - is not an Everything operator.

- will match a literal - in the filename.



Everything operators:
space = AND
| = OR
! = NOT
< > = Grouping
" " = escape operators.



To upload an image:
Click the Attachments tab.
Click Add files.
Select your image file and click Open.
Leave the file comment empty.
Click the place inline button.
It will paste the following text in your post:

Code: Select all

my-image.png
This text will be replaced with your image when submitted.
Since minus symbol is not a valid operator, why add "-" in the end of search command will derease results?
2.png
2.png (84.82 KiB) Viewed 1179 times
1.png
1.png (189.78 KiB) Viewed 1179 times
That's just a demostration of the wired output. In fact any comand i have tired in everything have the same bahavior.

And really thank you teach me upload images,help a lot ^_^
slarkmonk
Posts: 4
Joined: Mon Aug 26, 2024 1:50 am

Re: what does "-" mean in everything command

Post by slarkmonk »

void wrote: Mon Aug 26, 2024 3:21 am - is not an Everything operator.

- will match a literal - in the filename.



Everything operators:
space = AND
| = OR
! = NOT
< > = Grouping
" " = escape operators.



To upload an image:
Click the Attachments tab.
Click Add files.
Select your image file and click Open.
Leave the file comment empty.
Click the place inline button.
It will paste the following text in your post:

Code: Select all

my-image.png
This text will be replaced with your image when submitted.

Oh,I see!
Thank you!
And ignore the previous reply. Sorry
therube
Posts: 4977
Joined: Thu Sep 03, 2009 6:48 pm

Re: what does "-" mean in everything command

Post by therube »

why add "-" in the end of search command will decrease results?
"d: datemodified:today"
Find files that were modified today AND are on d: drive.
"d: datemodified:today" "d: datemodified:today -"
Find files that were modified today AND are on d: drive AND contain the string '-'.

So if you have a files named,
"updated-today.txt" & "updated today.txt"
the first search would give 2 results
the second search would only give 1 result (as "updated today.txt" does not contain a '-').
slarkmonk
Posts: 4
Joined: Mon Aug 26, 2024 1:50 am

Re: what does "-" mean in everything command

Post by slarkmonk »

therube wrote: Wed Aug 28, 2024 4:57 pm
why add "-" in the end of search command will decrease results?
"d: datemodified:today"
Find files that were modified today AND are on d: drive.
"d: datemodified:today" "d: datemodified:today -"
Find files that were modified today AND are on d: drive AND contain the string '-'.

So if you have a files named,
"updated-today.txt" & "updated today.txt"
the first search would give 2 results
the second search would only give 1 result (as "updated today.txt" does not contain a '-').
Thank you.
I understand
Post Reply