It seems currently the only way to exclude hidden files and/or system files, is to exclude them from the index.
It seems that this setting cannot be bookmarked and changing it means rebuilding the index.
Is there a way to filter these files from search results instead?
filter hidden and system files (instead of excluding from index)
Re: filter hidden and system files (instead of excluding from index)
Try search: оr create filter, eg https://yadi.sk/i/oP2OBS72_uMAKA
You should enable index attributes via Tools->Options->Indexes: Index Attributes
Code: Select all
!attrib:s !attrib:h
You should enable index attributes via Tools->Options->Indexes: Index Attributes
Re: filter hidden and system files (instead of excluding from index)
Thank you for the suggestion and sorry for my late reply.
I tested it and realized that I need something different from what I initially asked for:
The option under Tools>Options>Indexes>Exlude "Exclude hidden files and folders" excludes all files contained within hidden folders, even if the files themselves don't have a hidden attribute set. The search !attrib:h on the other hand does list files contained inside of hidden folders if the files themselves don't have the hidden attribute.
Is there a way to reproduce the exclude from index option, but by using filter syntax?
I tested it and realized that I need something different from what I initially asked for:
The option under Tools>Options>Indexes>Exlude "Exclude hidden files and folders" excludes all files contained within hidden folders, even if the files themselves don't have a hidden attribute set. The search !attrib:h on the other hand does list files contained inside of hidden folders if the files themselves don't have the hidden attribute.
Is there a way to reproduce the exclude from index option, but by using filter syntax?
Re: filter hidden and system files (instead of excluding from index)
Something like this? (not tested):
Code: Select all
!<folder: attrib:s|attrib:h>
Re: filter hidden and system files (instead of excluding from index)
Yes, thanks, getting closer.
I added the following in order to also exclude files and folders that are hidden/system but not located inside of hidden or system folders.
However, the result is still much larger than when turning on the index exclusion options. I'll do some more testing to find where the differences are.
I added the following in order to also exclude files and folders that are hidden/system but not located inside of hidden or system folders.
!<folder: attrib:s|attrib:h> !attrib:s !attrib:h
However, the result is still much larger than when turning on the index exclusion options. I'll do some more testing to find where the differences are.
Last edited by rdsignr on Tue Feb 04, 2020 7:43 pm, edited 1 time in total.
Re: filter hidden and system files (instead of excluding from index)
Just tested this. The "!<folder: attrib:s|attrib:h>" didn't work as I expected.
It did exclude (for example) the hidden folder c:\users\NotNull\appdata, but not all files and folders within.
In my case that explains the largest part of the difference between the two strategies. That and C:\Programdata ..
Will think about it a little longer as I can't come up with a solution at the moment.
It did exclude (for example) the hidden folder c:\users\NotNull\appdata, but not all files and folders within.
In my case that explains the largest part of the difference between the two strategies. That and C:\Programdata ..
Will think about it a little longer as I can't come up with a solution at the moment.
Re: filter hidden and system files (instead of excluding from index)
Thanks, I appreciate your help.
For what it's worth seems to be equivalent to as expected.
FYI on my machine, I get the following results:
No exclusion, no filter: 778k objects found
No exclusion + filter : 773k objects found (-0.6%)
Hidden and system files excluded, no filter: 551k objects found (-41%)
For what it's worth
!<folder: attrib:s> !<folder: attrib:h>
!<folder: attrib:s|attrib:h>
FYI on my machine, I get the following results:
No exclusion, no filter: 778k objects found
No exclusion + filter
!<folder: attrib:s|attrib:h> !attrib:h !attrib:s
Hidden and system files excluded, no filter: 551k objects found (-41%)
Re: filter hidden and system files (instead of excluding from index)
Out of curiousity:
does adding this to the search query reduce the difference much?
(Still not a solution ...)
does adding this to the search query reduce the difference much?
Code: Select all
!shell:"common appdata" !shell:appdata
Re: filter hidden and system files (instead of excluding from index)
It filters around 7% of objects, so much better already but nowhere near the 41% of the index exclusions.