I'm using ScidvsPC v4.25 on Ubuntu linux 22.
When I search for games with a SetUp tag having a value of '1', I get a discrepancy between the results displayed in the search filter (1) and the result count listed at the bottom of the Search panel (163189).
I'm attaching a screenshot so you can see what I mean.
Do you have "Adjust filter" in the tree enabled ?
Hard to say what the gui should do in this case.
Probably best to disable "adjust filter" on the db tree if we are doing a search.
proc ::search::loadFirstGame {} {
+ set current [sc_base current]
+ # Disable adjust tree for this base to avoid loading-at-ply changing the just-set search filter
+ set ::tree(adjustfilter$current) 0