Yes. I saw that after I posted:
var results = [];
dojo.forEach(map.graphics.graphics,function(graphic){
if (extent.contains(graphic.geometry)) {
graphic.setSymbol(highlightSymbol);
results.push(graphic.getContent());
}
//else if point was previously highlighted, reset its symbology
else if (graphic.symbol == highlightSymbol) {
graphic.setSymbol(defaultSymbol);
}
});
The only problem is that it loops through all of the graphics on the map. Could be slow as I may end up with thousands of graphics. But maybe the only possible solution?