The locate park by name function is doing this query
query.where = "UPPER" + "(" + nameAttribute + ")" + " LIKE '%" + dojo.byId("txtAddress").value.trim().toUpperCase() + "%'";
I am not sure what the "txtAddress" item is, but you can try that query directly on the rest endpoint.