Search-query-adaptor script