Operator: space -> AND

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
tuska
Posts: 1052
Joined: Thu Jul 13, 2017 9:14 am

Operator: space -> AND

Post by tuska »

Hello,
I have among others these text files in these folders:

Code: Select all

D:\Testfolder\Folder4\01. irgendein anderer name.txt
D:\Testfolder\Folder4\101. irgendein name.txt
D:\Testfolder\Folder5\01. irgendein anderer name.txt
D:\Testfolder\Folder5\101. irgendein name.txt
Files should be found, namely
that begin with 01. AND 101. in the file name.

Code: Select all

<D:\Testfolder\Folder4\|D:\Testfolder\Folder5\><startwith:01.|startwith:101.>
Operator: | -> OR
finds:

Code: Select all

D:\Testfolder\Folder4\01. irgendein anderer name.txt
D:\Testfolder\Folder4\101. irgendein name.txt
D:\Testfolder\Folder5\01. irgendein anderer name.txt
D:\Testfolder\Folder5\101. irgendein name.txt
Both files should be located in the same folder.
When I move a file, both file names should not be displayed.

Code: Select all

<D:\Testfolder\Folder4\|D:\Testfolder\Folder5\><startwith:01. startwith:101.>
Operator: space -> AND
finds nothing

How should I define this correctly?

Thank you in advance.

Regards,
Karl
________________________________________________
Windows 10 Pro (x64) Version 2004 (OS build 19041.546)
'Everything'-Version 1.4.1.993 (x64)
Portable on Systemdrive C: in C:\Tools\Everything
NotNull
Posts: 5458
Joined: Wed May 24, 2017 9:22 pm

Re: Operator: space -> AND

Post by NotNull »

That is currently not possible. You only can report the folders that contain a "101 irgendeine .." file as well as a "01 irgendeine .." (
wfn:child:01* wfn:child:101*
)

What you need for that is a siblng function. IIRC, it is on the to do list for Everything 1.5.
Then you could do something like:
<startwith:sibling:101 startwith:01> | <startwith:sibling:01 startwith:101>
tuska
Posts: 1052
Joined: Thu Jul 13, 2017 9:14 am

Re: Operator: space -> AND

Post by tuska »

Thanks for the prompt information!

Regards,
Karl
tuska
Posts: 1052
Joined: Thu Jul 13, 2017 9:14 am

Re: Operator: space -> AND

Post by tuska »

Now I have one more question:

Why does this query not work?

Code: Select all

D:\Test\Test1\ D:\Test2\
Operator: space -> AND was used.
Only the contents of these two folders should be displayed.

Code: Select all

D:\Test\Test1\|D:\Test2\
Operator: | -> OR
Works!

Unfortunately I do not fully understand the AND operator.
ovg
Posts: 294
Joined: Thu Oct 27, 2016 7:19 pm

Re: Operator: space -> AND

Post by ovg »

Object can't be D:\Test\Test1\ D:\Test2\ simultaneously, but for eg it can be file containing a in his name and pdf extension, so a ext:pdf finds all pdf files containing a in their names
tuska
Posts: 1052
Joined: Thu Jul 13, 2017 9:14 am

Re: Operator: space -> AND

Post by tuska »

ovg wrote: Mon Oct 12, 2020 4:58 am Object can't be D:\Test\Test1\ D:\Test2\ simultaneously, but for eg it can be file containing a in his name and pdf extension,
so a ext:pdf finds all pdf files containing a in their names
Thank you for the info!

So for this query operator: space -> AND cannot be used,
but a query with operator: | -> OR is possible, as another example shows:

Everything.ini

Code: Select all

paste_new_line_op=1
Search for:

Code: Select all

<D:\Test\Test1\>|<D:\Test2\>
Mmhh...
NotNull
Posts: 5458
Joined: Wed May 24, 2017 9:22 pm

Re: Operator: space -> AND

Post by NotNull »

There is a difference between 'computer-AND' and 'human-AND'.

As a human, I can say that I am looking for right-socks AND left-socks. Meaning that I want to find right- as well as left socks.

'Computer-AND' is different and will search for knitware that fits on your right foot, but also fits on your left foot.

(OK this is a lousy example. Replace sock with glove ...)

'Computer-AND' is different and will search for a glove that fit on your right hand, but that same glove should also fit on your left hand.
And there are zero gloves that match these requirements.

Computer-AND limits results further (whereas 'Human-AND' broadens the search) :
- Search for all files that are in D:\Test\Test1\
- From all the files in D:\Test\Test1\ , select only the ones that are in D:\Test2\
(Meaning: zero files as a file can't be in both folders at the same time)


BTW: 'Computer-OR' is different too :
If you ask me if I would like coffee or tea, I would reply "Coffee, please".
The computer would reply "Yes" (or more likely: "No", but that would ruin this example too ;))
ovg
Posts: 294
Joined: Thu Oct 27, 2016 7:19 pm

Re: Operator: space -> AND

Post by ovg »

2NotNull
:thumbsup::thumbsup::thumbsup: :D
tuska
Posts: 1052
Joined: Thu Jul 13, 2017 9:14 am

Re: Operator: space -> AND

Post by tuska »

2NotNull
Thank you for your comments.
Unfortunately, I was completely wrong :oops:

(For me, computer instructions (parameterization) are often very difficult to understand.
I am also annoyed by the fact that I did not consider that for Operator AND all conditions must apply).

Regards,
Karl
NotNull
Posts: 5458
Joined: Wed May 24, 2017 9:22 pm

Re: Operator: space -> AND

Post by NotNull »

tuska wrote: Mon Oct 12, 2020 10:31 am 2NotNull
Thank you for your comments.
Unfortunately, I was completely wrong :oops:

(For me, computer instructions (parameterization) are often very difficult to understand.
I am also annoyed by the fact that I did not consider that for Operator AND all conditions must apply).
Yeah, that is what happens when you start wondering about things at 01:30 in the morning ...

Do yo want coffee? :D
tuska
Posts: 1052
Joined: Thu Jul 13, 2017 9:14 am

Re: Operator: space -> AND

Post by tuska »

NotNull wrote: Mon Oct 12, 2020 11:19 am
tuska wrote: Mon Oct 12, 2020 10:31 am 2NotNull
Thank you for your comments.
Unfortunately, I was completely wrong :oops:

(For me, computer instructions (parameterization) are often very difficult to understand.
I am also annoyed by the fact that I did not consider that for Operator AND all conditions must apply).
Yeah, that is what happens when you start wondering about things at 01:30 in the morning ...

Do yo want coffee? :D
That must have been it ;)

I probably would have needed the coffee already at this time.
But thanks, I will get one soon anyway. :)
Post Reply