V3.6.8, how to set up a query().search() and a filter for it?

Ok that last issue was on my end faulty if statement ran a find() query after that would always return [] due to the ctx.query._q