query returns Set to contain unique hits, logging