{"action":"created","issue":{"url":"https://api.github.com/repos/ckan/ckan/issues/2697","labels_url":"https://api.github.com/repos/ckan/ckan/issues/2697/labels{/name}","comments_url":"https://api.github.com/repos/ckan/ckan/issues/2697/comments","events_url":"https://api.github.com/repos/ckan/ckan/issues/2697/events","html_url":"https://github.com/ckan/ckan/issues/2697","id":112537517,"number":2697,"title":"package_autocomplete only find packages that start with the given search query","user":{"login":"metaodi","id":538415,"avatar_url":"https://avatars.githubusercontent.com/u/538415?v=3","gravatar_id":"","url":"https://api.github.com/users/metaodi","html_url":"https://github.com/metaodi","followers_url":"https://api.github.com/users/metaodi/followers","following_url":"https://api.github.com/users/metaodi/following{/other_user}","gists_url":"https://api.github.com/users/metaodi/gists{/gist_id}","starred_url":"https://api.github.com/users/metaodi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/metaodi/subscriptions","organizations_url":"https://api.github.com/users/metaodi/orgs","repos_url":"https://api.github.com/users/metaodi/repos","events_url":"https://api.github.com/users/metaodi/events{/privacy}","received_events_url":"https://api.github.com/users/metaodi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-21T08:38:42Z","updated_at":"2015-10-21T09:43:39Z","closed_at":null,"body":"The [current implementation of package_autocomplete](https://github.com/ckan/ckan/blob/2f8d75c4da1ce5bf1fe9c59ab0f9aa8e3cd32270/ckan/logic/action/get.py#L1611) looks like that:\r\n\r\n```python\r\nlike_q = u\"%s%%\" % q\r\n```\r\n\r\nSo only packages that start with the given string will be returned.\r\nI expected something like `%searchterm%'` to get better results. E.g. `format_autocomplete` uses this format as well.\r\n\r\nOr was this intentional? "},"comment":{"url":"https://api.github.com/repos/ckan/ckan/issues/comments/149839086","html_url":"https://github.com/ckan/ckan/issues/2697#issuecomment-149839086","issue_url":"https://api.github.com/repos/ckan/ckan/issues/2697","id":149839086,"user":{"login":"metaodi","id":538415,"avatar_url":"https://avatars.githubusercontent.com/u/538415?v=3","gravatar_id":"","url":"https://api.github.com/users/metaodi","html_url":"https://github.com/metaodi","followers_url":"https://api.github.com/users/metaodi/followers","following_url":"https://api.github.com/users/metaodi/following{/other_user}","gists_url":"https://api.github.com/users/metaodi/gists{/gist_id}","starred_url":"https://api.github.com/users/metaodi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/metaodi/subscriptions","organizations_url":"https://api.github.com/users/metaodi/orgs","repos_url":"https://api.github.com/users/metaodi/repos","events_url":"https://api.github.com/users/metaodi/events{/privacy}","received_events_url":"https://api.github.com/users/metaodi/received_events","type":"User","site_admin":false},"created_at":"2015-10-21T09:43:39Z","updated_at":"2015-10-21T09:43:39Z","body":"PR for this issue: #2698"}}