Extremely inconsistent search behavior in a specific folder?

Discussion related to "Everything" 1.5 Alpha.
Post Reply
David.P
Posts: 200
Joined: Fri May 29, 2020 3:22 pm

Extremely inconsistent search behavior in a specific folder?

Post by David.P »

I have a directory under the following path:

C:\Users\Username\OneDrive - acme.com\ACME-AB

I get completely inconsistent search results on at least some of this path's subfolders. For example, in a subfolder called "Foo baz" (which is also not found when searched for) there are about 50 PDFs labeled like this, only with different numbers:

12345 - Foo bar baz.pdf

If I search for "12345 - Foo bar baz" or "12345 - Foo bar baz.pdf", the corresponding, exact file is found. However, when I search for the substring "Foo bar baz" or "Foo bar baz.pdf" that should match all files in that folder, no file is found at all.

What could be the reason for this?
void
Developer
Posts: 16733
Joined: Fri Oct 16, 2009 11:31 pm

Re: Extremely inconsistent search behavior in a specific folder?

Post by void »

Have you changed Tools -> Options -> Advanced -> match_whole_words_when_using_quotes?

Are there any search options enabled under the Search menu?
What is your active filter?
David.P
Posts: 200
Joined: Fri May 29, 2020 3:22 pm

Re: Extremely inconsistent search behavior in a specific folder?

Post by David.P »

> Have you changed Tools -> Options -> Advanced -> match_whole_words_when_using_quotes?
> Are there any search options enabled under the Search menu?
> What is your active filter?

All "no" or "none".

I am also seeing other strange phenomena at the moment. For example, all files under
C:\Users\username\OneDrive\ACME\Foobar\..


are also found as duplicates under:
C:\Users\USERNA~1\OneDrive\ACME\Foobar\..


In addition, a large number of files is found that do not exist in the specified path. These files are displayed in gray in the search results list, which I have also never seen before. Actually, neither drive P: (which might have existed in the past) nor the path "foobarbaz.V" exists:
P:\foobarbaz.V\00842Foo.pdf


Maybe the index is broken? In any case, I shall rebuild the index now and see if the issue persists. The index is based on folders, as I do not have administrator access here:

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

Re: Extremely inconsistent search behavior in a specific folder?

Post by therube »

files are displayed in gray
Might tend to indicate that the it is an "offline volume".

There is option to automatically remove "offline volumes".
Tools | Options | Indexes -> [FAT/NTFS/ReFS] -> Automatically remove offline volumes
viewtopic.php?p=62543#p62543
C:\Users\username\OneDrive\ACME\Foobar\
C:\Users\USERNA~1\OneDrive\ACME\Foobar\
See if you don't in fact have 2 separate directories there?
The latter seems to be in a "Short File Name" format?
void
Developer
Posts: 16733
Joined: Fri Oct 16, 2009 11:31 pm

Re: Extremely inconsistent search behavior in a specific folder?

Post by void »

Could you please send some debug output:
  • In Everything 1.5, clear any active search.
  • From the Tools menu, under the Debug submenu, click Start Debug Logging....
  • Search for the following, one after the other:
    "12345 - Foo bar baz"
    "12345 - Foo bar baz.pdf"
    "Foo bar baz"
    "Foo bar baz.pdf"
  • From the Tools menu, under the Debug submenu, click Stop Debug Logging....
  • This will open your Everything Debug Log.txt file in Notepad.
  • Could you please send this file to support@voidtools.com
David.P
Posts: 200
Joined: Fri May 29, 2020 3:22 pm

Re: Extremely inconsistent search behavior in a specific folder?

Post by David.P »

Okay will do, after my index is rebuilt, should the issue persist then.
David.P
Posts: 200
Joined: Fri May 29, 2020 3:22 pm

Re: Extremely inconsistent search behavior in a specific folder?

Post by David.P »

Okay, after rebuilding the index, the problem from the 1st post above seems to have disappeared.

Also, the issue with the grayed out files under the non-existent path "P:\foobarbaz.V\..." seems to be gone.

However, I still get duplicate search results. Each file is displayed twice in the results window under the following two paths:
David.P wrote: Mon Nov 27, 2023 7:08 pm all files under
C:\Users\username\OneDrive\ACME\Foobar\..

are also found as duplicates under:
C:\Users\USERNA~1\OneDrive\ACME\Foobar\..
If I right-click on a (latter) search result that is displayed with a shortened path and select "Open Path", the correct (former) long path is opened.

What could be the reason why I suddenly get all paths displayed with a shortened duplicate path?
therube
Posts: 4972
Joined: Thu Sep 03, 2009 6:48 pm

Re: Extremely inconsistent search behavior in a specific folder?

Post by therube »

Where is says "OneDrive" that is actually something related to (MS) "onedrive.live.com" (online web storage, virtual or whatever, or some such) [& rather then simply a directory named, "OneDrive"]?

If so, maybe that is playing into it?

Might "username" in fact be a Long File Name & MS's "onedrive" limits things to 8.3?


(This is dated, so I hope it is still not accurate ;-).)
File name limited to 29 charcters in Onedrive
horst.epp
Posts: 1445
Joined: Fri Apr 04, 2014 3:24 pm

Re: Extremely inconsistent search behavior in a specific folder?

Post by horst.epp »

therube wrote: Tue Nov 28, 2023 4:05 pm Where is says "OneDrive" that is actually something related to (MS) "onedrive.live.com" (online web storage, virtual or whatever, or some such) [& rather then simply a directory named, "OneDrive"]?

If so, maybe that is playing into it?

Might "username" in fact be a Long File Name & MS's "onedrive" limits things to 8.3?


(This is dated, so I hope it is still not accurate ;-).)
File name limited to 29 charcters in Onedrive
No, it's no longer accurate.
I have no problem to create very long names in One Drive
David.P
Posts: 200
Joined: Fri May 29, 2020 3:22 pm

Re: Extremely inconsistent search behavior in a specific folder?

Post by David.P »

I also have no problem with long file names in OneDrive.

I've also checked that the shortened path duplicates that Everything displays are also displayed for fairly short paths.

I haven't knowingly changed anything in my setup, my OneDrive for Business path and contents has been like this for years.
void
Developer
Posts: 16733
Joined: Fri Oct 16, 2009 11:31 pm

Re: Extremely inconsistent search behavior in a specific folder?

Post by void »

What is shown for attributes and the reparse target in Everything with the following search:

exact:C:\Users\USERNA~1 addcol:attributes;reparse-target

USERNA~1 is typically a shortname.
Everything doesn't index shortnames.
Maybe this is some odd folder junction?
David.P
Posts: 200
Joined: Fri May 29, 2020 3:22 pm

Re: Extremely inconsistent search behavior in a specific folder?

Post by David.P »

void wrote: Tue Nov 28, 2023 11:10 pm What is shown for attributes and the reparse target in Everything with the following search:

exact:C:\Users\USERNA~1 addcol:attributes;reparse-target
This search shows the following in the "Name" column:
USERNA~1


I don't reember having set up any folder junctions recently.
void
Developer
Posts: 16733
Joined: Fri Oct 16, 2009 11:31 pm

Re: Extremely inconsistent search behavior in a specific folder?

Post by void »

Was anything shown under the attributes and reparse target column for USERNA~1?
void
Developer
Posts: 16733
Joined: Fri Oct 16, 2009 11:31 pm

Re: Extremely inconsistent search behavior in a specific folder?

Post by void »

Please try adding C:\Users\USERNA~1 to your exclude list:
  • In Everything, from the Tools menu, click Options.
  • Click the Exclude tab on the left.
  • Click Add filter....
  • Set the filter to:
    C:\Users\USERNA~1
  • Click OK.
  • Click OK.
David.P
Posts: 200
Joined: Fri May 29, 2020 3:22 pm

Re: Extremely inconsistent search behavior in a specific folder?

Post by David.P »

void wrote: Tue Nov 28, 2023 11:35 pm Was anything shown under the attributes and reparse target column for USERNA~1?
Ah sorry, those columns were out of sight because the list was too wide.

The "Attributes" column shows letter "D" and the "Reparse Target" column shows nothing.
void wrote: Tue Nov 28, 2023 11:35 pmPlease try adding C:\Users\USERNA~1 to your exclude list
OK I've done that and the
C:\Users\USERNA~1
path is gone from the search results, but now every file is instead listed with a duplicate under:
C:\Users\username\ONEDRI~1.COM\..

which actually should read:
C:\Users\username\OneDrive - ACME.com\..


What is happening?
David.P
Posts: 200
Joined: Fri May 29, 2020 3:22 pm

Re: Extremely inconsistent search behavior in a specific folder?

Post by David.P »

Okay for now I shall try and add the following folder filter:

*~1*


I will continue to report on the issue, if applicable.

Thanks @all
David
void
Developer
Posts: 16733
Joined: Fri Oct 16, 2009 11:31 pm

Re: Extremely inconsistent search behavior in a specific folder?

Post by void »

If the issue persists, are the ~1 folders removed if you perform a rescan from Index -> Rescan -> C:\ ?
David.P
Posts: 200
Joined: Fri May 29, 2020 3:22 pm

Re: Extremely inconsistent search behavior in a specific folder?

Post by David.P »

Thank you. Will test and report back.
David.P
Posts: 200
Joined: Fri May 29, 2020 3:22 pm

Re: Extremely inconsistent search behavior in a specific folder?

Post by David.P »

I just removed that folder filter
*~1*
for a test, and now the duplicate files under the path
C:\Users\USERNA~1\
are all back.

It looks like every single file in the directory of the user USERNAME is listed as duplicate under this path:
image.png
image.png (569.75 KiB) Viewed 1429 times
David.P
Posts: 200
Joined: Fri May 29, 2020 3:22 pm

Re: Extremely inconsistent search behavior in a specific folder?

Post by David.P »

void wrote: Thu Dec 21, 2023 8:34 am If the issue persists, are the ~1 folders removed if you perform a rescan from Index -> Rescan -> C:\ ?
Oops, so I tested and removed that filter one more time, then immediately performed a rescan and now the duplicates seem to be gone. Isn't that strange, after such a long time when the issue first appeared?

Edit: Two hours later and the duplicates under the path
C:\Users\USERNA~1\
are back again :shock:
void
Developer
Posts: 16733
Joined: Fri Oct 16, 2009 11:31 pm

Re: Extremely inconsistent search behavior in a specific folder?

Post by void »

Please also add the following file exclude filter:

*~1\**

This will exclude files with a short path. (and files in subfolders)



For example:

*.lnk;*.tmp;~*.*;*~1*;*~1\**
David.P
Posts: 200
Joined: Fri May 29, 2020 3:22 pm

Re: Extremely inconsistent search behavior in a specific folder?

Post by David.P »

Thank you. I added
USERNA~1
as a folder filter now -- so I remember years from now why I added it in the first place 💁
Post Reply