Sorting content search by frequency of search hits

General discussion related to "Everything".
Post Reply
sortingbycount
Posts: 3
Joined: Sun Jul 28, 2024 3:24 am

Sorting content search by frequency of search hits

Post by sortingbycount »

Hi can someone please show me how to sort my content search within a folder (with multiple files) by the highest frequency/number of search hits.

I came across this post viewtopic.php?t=11025 but cannot figure how to get it to work (I'm very computer illiterate unfortunately can't really make sense of the regex flags search modifiers).

Thank you so much!
void
Developer
Posts: 16723
Joined: Fri Oct 16, 2009 11:31 pm

Re: Sorting content search by frequency of search hits

Post by void »

An easier method:

addcolumn:a a:=STRINGCOUNT($content:,"foo") sort:a-descending
sortingbycount
Posts: 3
Joined: Sun Jul 28, 2024 3:24 am

Re: Sorting content search by frequency of search hits

Post by sortingbycount »

Hi do I just paste this line in the search bar?

If I want to search "Apple" in the contents of my files within "E:\Drive" is it

"E:\Drive" AND addcolumn:a a:=STRINGCOUNT($content:,"Apple") sort:a-descending

/are there any options feature I need to turn on? It's not returning any results...
Thank you so much!
void
Developer
Posts: 16723
Joined: Fri Oct 16, 2009 11:31 pm

Re: Sorting content search by frequency of search hits

Post by void »

Just paste it in the search bar.

I recommend combining it with other filters:

"E:\Drive" doc: addcolumn:a a:=STRINGCOUNT($content:,"Apple") sort:a-descending


E:\Drive = Change this to a path on your E: drive.
doc: = match documents (change to *.txt or other specific extensions for improved performance)
Sorting progress is shown in the status bar on the right.
It will take several minutes for Everything to gather this information.



Try the following to ignore case:

"E:\Drive" doc: addcolumn:a a:=STRINGCOUNT(REMOVEDIACRITICS(LOWER($content:)),"Apple") sort:a-descending




STRINGCOUNT() examples
STRINGCOUNT()
sortingbycount
Posts: 3
Joined: Sun Jul 28, 2024 3:24 am

Re: Sorting content search by frequency of search hits

Post by sortingbycount »

Got it working!! I realized I was still using Everything 1.4 and that's why it wasn't working.

Thank you so much!!
Post Reply