Fixed search query, now the query is built only with filled values from the get method