Making sure not to add to the similarity if the substring wasn't found (so position was -1).
Setting the search text to be the decoded URL.