If data-query is passed searches automatically