{"action":"created","issue":{"url":"https://api.github.com/repos/Symplify/Symplify/issues/95","repository_url":"https://api.github.com/repos/Symplify/Symplify","labels_url":"https://api.github.com/repos/Symplify/Symplify/issues/95/labels{/name}","comments_url":"https://api.github.com/repos/Symplify/Symplify/issues/95/comments","events_url":"https://api.github.com/repos/Symplify/Symplify/issues/95/events","html_url":"https://github.com/Symplify/Symplify/pull/95","id":213554400,"number":95,"title":"[Statie] similar posts filter added","user":{"login":"TomasVotruba","id":924196,"avatar_url":"https://avatars2.githubusercontent.com/u/924196?v=3","gravatar_id":"","url":"https://api.github.com/users/TomasVotruba","html_url":"https://github.com/TomasVotruba","followers_url":"https://api.github.com/users/TomasVotruba/followers","following_url":"https://api.github.com/users/TomasVotruba/following{/other_user}","gists_url":"https://api.github.com/users/TomasVotruba/gists{/gist_id}","starred_url":"https://api.github.com/users/TomasVotruba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TomasVotruba/subscriptions","organizations_url":"https://api.github.com/users/TomasVotruba/orgs","repos_url":"https://api.github.com/users/TomasVotruba/repos","events_url":"https://api.github.com/users/TomasVotruba/events{/privacy}","received_events_url":"https://api.github.com/users/TomasVotruba/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-03-11T19:46:55Z","updated_at":"2017-03-12T21:01:06Z","closed_at":"2017-03-12T13:12:00Z","pull_request":{"url":"https://api.github.com/repos/Symplify/Symplify/pulls/95","html_url":"https://github.com/Symplify/Symplify/pull/95","diff_url":"https://github.com/Symplify/Symplify/pull/95.diff","patch_url":"https://github.com/Symplify/Symplify/pull/95.patch"},"body":"Add filter to get **similar posts to particular one**.\r\n\r\n### The Use Case\r\n\r\nE.g. series about Statie => show 3 related posts under the post.\r\n\r\n\r\n### The Goal \r\n\r\nDon't do it manually, to lazy/boring. Let computer do that.\r\n\r\n\r\n### What algorithm to use?\r\n\r\n- content via [`similar-text`](http://php.net/manual/en/function.similar-text.php) function\r\n- title with the same, just x times higher weight\r\n- [`krsort`](http://php.net/manual/en/function.krsort.php) posts by score\r\n\r\n\r\n### Any ideas?\r\n\r\nI've never done more complex string comparison than [`levenstein`](http://php.net/manual/en/function.levenshtein.php), so not sure if this is the best solution.\r\n\r\n**So feel free to drop any ideas you got.** Thank you\r\n\r\nI won't give you a  :1st_place_medal:  , but I'd really appreciate it :) "},"comment":{"url":"https://api.github.com/repos/Symplify/Symplify/issues/comments/285976201","html_url":"https://github.com/Symplify/Symplify/pull/95#issuecomment-285976201","issue_url":"https://api.github.com/repos/Symplify/Symplify/issues/95","id":285976201,"user":{"login":"tomasfejfar","id":642928,"avatar_url":"https://avatars3.githubusercontent.com/u/642928?v=3","gravatar_id":"","url":"https://api.github.com/users/tomasfejfar","html_url":"https://github.com/tomasfejfar","followers_url":"https://api.github.com/users/tomasfejfar/followers","following_url":"https://api.github.com/users/tomasfejfar/following{/other_user}","gists_url":"https://api.github.com/users/tomasfejfar/gists{/gist_id}","starred_url":"https://api.github.com/users/tomasfejfar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomasfejfar/subscriptions","organizations_url":"https://api.github.com/users/tomasfejfar/orgs","repos_url":"https://api.github.com/users/tomasfejfar/repos","events_url":"https://api.github.com/users/tomasfejfar/events{/privacy}","received_events_url":"https://api.github.com/users/tomasfejfar/received_events","type":"User","site_admin":false},"created_at":"2017-03-12T21:01:06Z","updated_at":"2017-03-12T21:01:06Z","body":"Právě že ne. Když jsem potřeboval něco složitějšího, tak Elasticsearch - https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-mlt-query.html"}}
{"actor":{"display_login":"tomasfejfar"}}