{"action":"created","issue":{"url":"https://api.github.com/repos/minimalparts/PeARS/issues/11","labels_url":"https://api.github.com/repos/minimalparts/PeARS/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/minimalparts/PeARS/issues/11/comments","events_url":"https://api.github.com/repos/minimalparts/PeARS/issues/11/events","html_url":"https://github.com/minimalparts/PeARS/issues/11","id":105113578,"number":11,"title":"Bug associated with duckduckgo redirection","user":{"login":"minimalparts","id":8198783,"avatar_url":"https://avatars.githubusercontent.com/u/8198783?v=3","gravatar_id":"","url":"https://api.github.com/users/minimalparts","html_url":"https://github.com/minimalparts","followers_url":"https://api.github.com/users/minimalparts/followers","following_url":"https://api.github.com/users/minimalparts/following{/other_user}","gists_url":"https://api.github.com/users/minimalparts/gists{/gist_id}","starred_url":"https://api.github.com/users/minimalparts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/minimalparts/subscriptions","organizations_url":"https://api.github.com/users/minimalparts/orgs","repos_url":"https://api.github.com/users/minimalparts/repos","events_url":"https://api.github.com/users/minimalparts/events{/privacy}","received_events_url":"https://api.github.com/users/minimalparts/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-06T19:48:23Z","updated_at":"2015-09-07T07:13:06Z","closed_at":null,"body":"Ok, I'm totally puzzled. I'm playing with the scoring function in scorePages.py, and the following is happening.\r\n\r\nI typed in the following three queries, in this order:\r\n\r\n\"python string replace\" -- got results\r\n\"python unicode\" -- no result, redirected to duckduckgo\r\n\"video games with animals\" -- got results page but *with the results of the first query* -- 'python string replace'\r\n\r\nWhat gets me is that if I modify the scoring function (change the threshold, etc), I can stop this effect. Regardless... it seems some variable is holding search results longer than it should..."},"comment":{"url":"https://api.github.com/repos/minimalparts/PeARS/issues/comments/138212657","html_url":"https://github.com/minimalparts/PeARS/issues/11#issuecomment-138212657","issue_url":"https://api.github.com/repos/minimalparts/PeARS/issues/11","id":138212657,"user":{"login":"minimalparts","id":8198783,"avatar_url":"https://avatars.githubusercontent.com/u/8198783?v=3","gravatar_id":"","url":"https://api.github.com/users/minimalparts","html_url":"https://github.com/minimalparts","followers_url":"https://api.github.com/users/minimalparts/followers","following_url":"https://api.github.com/users/minimalparts/following{/other_user}","gists_url":"https://api.github.com/users/minimalparts/gists{/gist_id}","starred_url":"https://api.github.com/users/minimalparts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/minimalparts/subscriptions","organizations_url":"https://api.github.com/users/minimalparts/orgs","repos_url":"https://api.github.com/users/minimalparts/repos","events_url":"https://api.github.com/users/minimalparts/events{/privacy}","received_events_url":"https://api.github.com/users/minimalparts/received_events","type":"User","site_admin":false},"created_at":"2015-09-07T07:13:06Z","updated_at":"2015-09-07T07:13:06Z","body":"Right, if I use the original scoring function, it doesn't happen. What confuses me is that I'm only changing stuff in the scoreDocs function in scorePages, without touching the best_urls variable. My guess is that I've done something horribly wrong with a global variable. \r\n\r\nAnyway, I suggest I make my changes to scoreDocs and open a pull request so you can have a look at it... "}}