parse out the ref hostname for the hit doc