Apparent bug in search function

I try to make an advanced search on image files in several subfolders based on rating using "is greater or equal to" 4 stars and I had wrong results in different folders:
In one case, results displayed many folders (should be files only) and files from parent folder.
In a second case, the results displayed again folders and 2576 files (missing 72 files which is the exact number of 5 stars)
In a third case, in a small subfolder with 4 images with 0 file and 2 images with 5 stars, the result was the 4 images with 0 star.
I tested other conditions and "is less or equal to" seemed to work less irrationally but at least in one case displayed again many folders.
all the other conditions work fine selecting the correct files.

Please show us some screenshots of how the Find panel is configured, and some files that match but shouldn't (or vice versa).

Well it did not want to work until I make this post, now it is working fine just to make me look stupid.

I will delete this post in the next 24 hours if I don't see the problem again.

Eh no point in deleting the post, you can just mention if the issue came back or not. That way for cases where it's maybe a rare bug that someone else experiences, they might find it while searching. Or it might start happening again later on.