Respect search terms when querying folders