distinct is not working with content

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
sk2107
Posts: 325
Joined: Sun Aug 07, 2022 8:48 pm

distinct is not working with content

Post by sk2107 »

Hello,

Today I tried to use
*.py content:ALL_md5.db distinct:md5
to list one copy of the files witch contain the value ALL_md5.db but it is listing all files including duplicated MD5 values (as shown in the attached file)
Everything64_c0000000386.jpg
Everything64_c0000000386.jpg (115.63 KiB) Viewed 305 times
Thank you
NotNull
Posts: 5461
Joined: Wed May 24, 2017 9:22 pm

Re: distinct is not working with content

Post by NotNull »

Confirmed.

However, I did notice that when the content was indexed, results were as expected.
Using fromdisk:content: for non-indexed content again made dupe:/distinct:/.. fail

To check what content is indexed, go to: Menu => Tools => Options => Indexes => Content.
sk2107
Posts: 325
Joined: Sun Aug 07, 2022 8:48 pm

Re: distinct is not working with content

Post by sk2107 »

Thank you for your replay.

Actually I do not require content indexing because I rarely use it, and I do not want to add more load on the application.


Best Regards
void
Developer
Posts: 16748
Joined: Fri Oct 16, 2009 11:31 pm

Re: distinct is not working with content

Post by void »

This is currently a limitation with Everything and the content: search.

content: searches are done in the background.
Background searches do not apply distinct:, unique: or dupe:

One work around is to search for your files first, save them to a filelist slot and then perform your distinct search:
  • Search for:
    *.py content:ALL_md5.db
  • Select all files (Ctrl + A)
  • Copy filenames (Ctrl + Shift + A)
  • Search for:
    filelist1: distinct:md5
  • Right click the filelist1: text in your search box and click Edit File list Slot...
  • Paste your filenames (Ctrl + V)
  • Click OK.


The next alpha update will not do a background content search when using dupe:, unique: or distinct: and your search will work as expected.
sk2107
Posts: 325
Joined: Sun Aug 07, 2022 8:48 pm

Re: distinct is not working with content

Post by sk2107 »

Thank a lot.

Best Regards
Post Reply