add search post variable to the frontend query.