{"action":"created","issue":{"url":"https://api.github.com/repos/lewang/flx/issues/90","repository_url":"https://api.github.com/repos/lewang/flx","labels_url":"https://api.github.com/repos/lewang/flx/issues/90/labels{/name}","comments_url":"https://api.github.com/repos/lewang/flx/issues/90/comments","events_url":"https://api.github.com/repos/lewang/flx/issues/90/events","html_url":"https://github.com/lewang/flx/issues/90","id":157602730,"number":90,"title":"higher score to shorter strings","user":{"login":"fommil","id":1914041,"avatar_url":"https://avatars.githubusercontent.com/u/1914041?v=3","gravatar_id":"","url":"https://api.github.com/users/fommil","html_url":"https://github.com/fommil","followers_url":"https://api.github.com/users/fommil/followers","following_url":"https://api.github.com/users/fommil/following{/other_user}","gists_url":"https://api.github.com/users/fommil/gists{/gist_id}","starred_url":"https://api.github.com/users/fommil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fommil/subscriptions","organizations_url":"https://api.github.com/users/fommil/orgs","repos_url":"https://api.github.com/users/fommil/repos","events_url":"https://api.github.com/users/fommil/events{/privacy}","received_events_url":"https://api.github.com/users/fommil/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-05-31T07:01:08Z","updated_at":"2016-11-11T13:40:51Z","closed_at":null,"body":"I'd be interested in tuning the algorithm to give a slightly higher score to shorter strings that match (or conversely, penalising longer strings).\n\nWhere would I start?\n\nTypicaly usecase is that when I search for something such as `ss` intending to match a file called `SearchService.scala` in my codebase, the hits for `SearchServiceSpec.scala` and `SearchServiceFixture.scala` are coming up first.\n"},"comment":{"url":"https://api.github.com/repos/lewang/flx/issues/comments/259959286","html_url":"https://github.com/lewang/flx/issues/90#issuecomment-259959286","issue_url":"https://api.github.com/repos/lewang/flx/issues/90","id":259959286,"user":{"login":"jtbm37","id":536407,"avatar_url":"https://avatars.githubusercontent.com/u/536407?v=3","gravatar_id":"","url":"https://api.github.com/users/jtbm37","html_url":"https://github.com/jtbm37","followers_url":"https://api.github.com/users/jtbm37/followers","following_url":"https://api.github.com/users/jtbm37/following{/other_user}","gists_url":"https://api.github.com/users/jtbm37/gists{/gist_id}","starred_url":"https://api.github.com/users/jtbm37/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jtbm37/subscriptions","organizations_url":"https://api.github.com/users/jtbm37/orgs","repos_url":"https://api.github.com/users/jtbm37/repos","events_url":"https://api.github.com/users/jtbm37/events{/privacy}","received_events_url":"https://api.github.com/users/jtbm37/received_events","type":"User","site_admin":false},"created_at":"2016-11-11T13:40:51Z","updated_at":"2016-11-11T13:40:51Z","body":"This would be very much appreciated. Here is a very obvious example:\r\n`(flx-score \"StopMonitoringSubscriptionProcessorTests\" \"ms\")`\r\ngives (159 4 14)\r\n`(flx-score \"mstest.log\" \"ms\")`\r\ngives (140 0 1)\r\n"}}
{"actor":{"display_login":"jtbm37"}}