[Solved] Content Count Column shows a single match as 0.

General discussion related to "Everything".
Post Reply
Native2904
Posts: 112
Joined: Mon Nov 22, 2021 8:36 pm

[Solved] Content Count Column shows a single match as 0.

Post by Native2904 »

Hi,

I found a trick here to count matches via a column.

Code: Select all

Search = content:search:   addcol:A   A-label:="Content Count"   A:=STRINGCOUNT($content:,search:)
But when there is only 1 match in the file, Everything shows 0 in the Content Count column.

Is this because the match itself counts as 1, and the Content Count column only counts from the second hit :?:

Is there a setting to make the counter count correctly, so that a single match is shown as 1?
Last edited by Native2904 on Sun Mar 22, 2026 7:26 pm, edited 1 time in total.
void
Developer
Posts: 19830
Joined: Fri Oct 16, 2009 11:31 pm

Re: Content Count Column shows a single match as 0.

Post by void »

Everything should be counting a single match as 1.

Could you please send a txt file and your search where the content count shows as 0.



Some tests you can do from the main search box:

Code: Select all

=STRINGCOUNT("ABC","ABC") => 1
=STRINGCOUNT("ABCABC","ABC") => 2
=STRINGCOUNT("AAAB","A") => 3
=STRINGCOUNT("AAAB","AA") => 1 (Everything advances the full match, not a single character)
So something is likely up with how Everything is reading content.
What type of files are you searching for content?
Post Reply