A jury has been told that a man accused of a rape for which another man wrongly served 17 years in jail made frequent internet searches about the alleged crime.