Search debugging

@seldo, @ceejbot - thoughts?