change search to only return ids