Adds id_only to query in discovery