@Rickyfox, So you have a search environment and you'd like to know if users are clicking the same urls that other users are clicking with the same search terms, right? Why is this not sorted from the start? You log all these queries into a txt file, can you not sort them upon search into groups of txt files and then have your script run during down time processing groups here and there?