Change order of query and path argument in xsearch method