Excluding Folders when adding duplicated folders

Discussion related to "Everything" 1.5 Alpha.
Post Reply
ChrisGreaves
Posts: 688
Joined: Wed Jan 05, 2022 9:29 pm

Excluding Folders when adding duplicated folders

Post by ChrisGreaves »

I examined a few topics How to exclude folders which contain a pattern except when under a certain folder?, "Add Custom Folder" for beginners ...,, To temporarily exclude folder, and What am I doing wrong,why can't I exclude specific folder? after Searching topics from the past year. and do not yet see a clue.

Because an application ("WbWrd") requires that the folder on which I operate belongs under the root of a drive, I have mapped (SUBST) drive W: to the folder T:\Greaves\Admin\Domains on my data partition T:
Hence W: for my Web domains.

Drive T:, my data partition, already appears under the FAT section, as it should.
Now I add drive W: to that FAT section.
FolderIndexing_02.png
FolderIndexing_02.png (53.14 KiB) Viewed 2704 times
In the Result List, searches show TWO copies of documents, images etc. One copy is pathed as W:, and the second copy is pathed as T:\Greaves\Admin\Domains.

My simplistic view is that I would like to Exclude the folder T:\Greaves\Admin\Domains, so I went into Tools, Options, Indexes, Folders and hoped to Add Custom the string !T:\Greaves\Admin\Domains, to negate or exclude that folder.
FolderIndexing_01.png
FolderIndexing_01.png (52.92 KiB) Viewed 2704 times
The setting seems to take, I chose "Rescan Now" on each folder and even "Rescan All Now", just in case.
I saw no error messages.
...but I still find files reported twice.

Am I correct in supposing that:-
(1) I cannot use the exclamation-mark (!) to apply NOT to items in the Add Custom Folders arena?
(2) There could be some sort of error-message as a syntax check is done within a dialogue box if extraneous characters (in my case "!") are detected?

Thanks, Chris
therube
Posts: 5003
Joined: Thu Sep 03, 2009 6:48 pm

Re: Excluding Folders when adding duplicated folders

Post by therube »

Drive T:, my data partition, already appears under the FAT section, as it should.
W: (aka T:) is FAT, not NTFS ?
And you're using Folder rather then (indexing, or not, under) FAT (or NTFS) ?
ChrisGreaves
Posts: 688
Joined: Wed Jan 05, 2022 9:29 pm

Re: Excluding Folders when adding duplicated folders

Post by ChrisGreaves »

Hi TheRube, and thank you for the questions!
therube wrote: Mon May 15, 2023 6:30 pmW: (aka T:) is FAT, not NTFS ?
Yes, as shown at (2) in the attached image
And you're using Folder rather then (indexing, or not, under) FAT (or NTFS) ?
Yes, as shown at (5) in the attached image.

(1) My data partition, drive T:, all of it, is indexed as a FAT drive.
(2) My SUBST drive W: is NOT indexed as a FAT drive (see (5))
(3) My boot partition C: is a NTFS drive
(4) Folders: I have excluded a folder tree T:\Greaves\Admin\Domains
(5) Folders: I have included a folder tree W:\

In writing this out it seems complicated, and that is often enough a Bad Sign. :roll:
I reasoned that I had to negate "T:\Greaves\Admin\Domains" in the Folders section, so I would add W:\ in that same section so that my logic was collected together: "I am indexing my W: drive, which means "T:\Greaves\Admin\Domains", and so I am excluding "T:\Greaves\Admin\Domains" from the T: Drive"
Attachments
006.png
006.png (66.36 KiB) Viewed 2682 times
therube
Posts: 5003
Joined: Thu Sep 03, 2009 6:48 pm

Re: Excluding Folders when adding duplicated folders

Post by therube »

It looks like when a SUBST is used, the SUBST'd drive is seen as its' "source" (if included) & also as the "substitute" - regardless of whether it is "physically" (checkmarked to include) included or not.

So as T: is included, W: is also "included" - even you you tell Everything to NOT index W:.

So, add T:.../Domains/ as an exclusion.

3107 is in both T:\, & T:\DOMAINS (aka W:)
(named, 3107-TTT in T:, & 3107-WWW in W:)
W: is NOT included in the (NTFS [in my case]) Indexing (via NTFS Indexing)
W:, nonetheless IS shown, by virtue of it being a SUBST (& where T: is Indexed)

Code: Select all

E:\Users\RUBEN7>SUBST
W:\: => T:\DOMAINS

E:\Users\RUBEN7>
.
Everything - exclude DOMAIN folder.png
Everything - exclude DOMAIN folder.png (89.62 KiB) Viewed 2676 times
ChrisGreaves
Posts: 688
Joined: Wed Jan 05, 2022 9:29 pm

Re: Excluding Folders when adding duplicated folders

Post by ChrisGreaves »

therube wrote: Tue May 16, 2023 3:14 pm ... So, add T:.../Domains/ as an exclusion.
Thanks, the Rube.
What this implementation of phpBB needs is a new smiley :SlapsHeadExceedinglyHardSevenTimes:
Only then do I make any progress at all. :roll:

I was trying to negate inclusion of a folder by applying the NOT operator (!) in my submission to the Include Folder box.
I should, as one of my gurus :D pointed out, be using the Exclude Folders box.
007.png
007.png (25.95 KiB) Viewed 2643 times
This (above) is what I WAS doing. :doh:
I removed that negated T: path from the Folders box and placed it as an un-negated path in the Exclude Folders box
009.png
009.png (62.64 KiB) Viewed 2643 times
Here is part of my result List, sorted by date-modified to group any files whose Identifiers are duplicated in the Result List.
The yellow-outline suggests that Index.doc is reported twice as being in
W:\LandfallGardenHouse\
(I will look into this now), but NOT reported as being in
T:\Greaves\Admin\Domains\"
, and that is what I was hoping for.
I have more testing to do, but my aim is to be able to run the index.doc from the (Result List) W: drive to keep the WbWrd application happy.
Thanks again.
Chris
therube
Posts: 5003
Joined: Thu Sep 03, 2009 6:48 pm

Re: Excluding Folders when adding duplicated folders

Post by therube »

Oh, forgot to mention, while you may have been able to add the "!T:..." (as a Folder Index), its' presence is for not, because it isn't doing anything (as in, it is NOT NOT'ing your T: directory).
ChrisGreaves
Posts: 688
Joined: Wed Jan 05, 2022 9:29 pm

Re: Excluding Folders when adding duplicated folders

Post by ChrisGreaves »

therube wrote: Wed May 17, 2023 3:13 pm Oh, forgot to mention, while you may have been able to add the "!T:..." (as a Folder Index), its' presence is for not, because it isn't doing anything (as in, it is NOT NOT'ing your T: directory).
OK. I get that.
But a few days ago when I tried the ! example in [Include] Folders it was just ignored, instead of prompting a warning message.
This morning when I inadvertently pasted the ! string into Exclude Folders, I got a rap on the knuckles:-
008.png
008.png (28.36 KiB) Viewed 2630 times
We/You can't have it both ways; If an entry doesn't make sense, then it ought to be reported. not ignored.
And if it can be reported in Exclude Folders, then it seems that the same checking can cause it to be reported in [Include] Folders

I will be appending this to my earlier post to Void, when I find it.
Meanwhile, back at the ranch ...
Cheers, Chris
ChrisGreaves
Posts: 688
Joined: Wed Jan 05, 2022 9:29 pm

Re: Excluding Folders when adding duplicated folders

Post by ChrisGreaves »

ChrisGreaves wrote: Mon May 15, 2023 2:26 pm Because an application ("WbWrd") requires that the folder on which I operate belongs under the root of a drive, I have mapped (SUBST) drive W: to the folder T:\Greaves\Admin\Domains on my data partition T:
I have resolved this with the user of Folders
(1) My data partition is no longer indexed as a drive
(2) My data partition is assigned with Tools, Options, Indexes, {Include}Folders as T:\
(3) My Substituted drive W: is lodged under FAT with “Include in database”
(4) The path represented by w:, “T:\Greaves\Admin\Domains” is added to the Exclude{folders} list.
Indexes_27.png
Indexes_27.png (56.27 KiB) Viewed 2317 times
And hooray! A specific file “Diary.doc” in my web pages shows up in the Result List as being on drive W:, and its entry is NOT duplicated as a member of drive T:

When I Run that Diary.DOC it is opened as being on Drive W:. Exactly what I need.
Thanks Void!
Chris
Post Reply