The main issue with your code is you *OR your 4 queries but you use all of them even if only one is true.
You have to test each query indivudually and build your complete $or array accordingly. This is standard JS because the $or field is a standard JS array where each clause is a standard JS object.