{"action":"created","issue":{"url":"https://api.github.com/repos/select2/select2/issues/1609","repository_url":"https://api.github.com/repos/select2/select2","labels_url":"https://api.github.com/repos/select2/select2/issues/1609/labels{/name}","comments_url":"https://api.github.com/repos/select2/select2/issues/1609/comments","events_url":"https://api.github.com/repos/select2/select2/issues/1609/events","html_url":"https://github.com/select2/select2/issues/1609","id":17979064,"number":1609,"title":"Search word by word, instead of full phrase","user":{"login":"ktaragorn","id":2549496,"avatar_url":"https://avatars.githubusercontent.com/u/2549496?v=3","gravatar_id":"","url":"https://api.github.com/users/ktaragorn","html_url":"https://github.com/ktaragorn","followers_url":"https://api.github.com/users/ktaragorn/followers","following_url":"https://api.github.com/users/ktaragorn/following{/other_user}","gists_url":"https://api.github.com/users/ktaragorn/gists{/gist_id}","starred_url":"https://api.github.com/users/ktaragorn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ktaragorn/subscriptions","organizations_url":"https://api.github.com/users/ktaragorn/orgs","repos_url":"https://api.github.com/users/ktaragorn/repos","events_url":"https://api.github.com/users/ktaragorn/events{/privacy}","received_events_url":"https://api.github.com/users/ktaragorn/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2013-08-13T04:35:56Z","updated_at":"2017-01-06T02:54:33Z","closed_at":"2013-08-29T06:32:30Z","body":"I understand one can do this by a custom matcher, but it feels very necessary when you are searching among elements longer than a couple of words\n\nFor e.g\n\ntext - the quick brown fox\nterm - qui fo  (quick fox)\n\nCurrently - No match\n\nwith custom matcher they match.\n\nthe matcher is \n\n```\nmatcher: function(term, text) {\n      var has = true;\n      var words = term.toUpperCase().split(\" \");\n      for (var i =0; i < words.length; i++){\n        var word = words[i];\n        has = has && (text.toUpperCase().indexOf(word) >= 0); \n      }\n      return has;\n}\n```\n\nThis shouldn't be a default for performance reasons (actually if it scales, perhaps it isn't too bad as a default), but it can be offered as a boolean flag to the constructor.\n\nBasically what I am curious about is that is there any reason this isnt in already? The only thing I can think of is that selecting from multiword elements is a lot rarer than I am assuming.\n"},"comment":{"url":"https://api.github.com/repos/select2/select2/issues/comments/270819168","html_url":"https://github.com/select2/select2/issues/1609#issuecomment-270819168","issue_url":"https://api.github.com/repos/select2/select2/issues/1609","id":270819168,"user":{"login":"ktaragorn","id":2549496,"avatar_url":"https://avatars.githubusercontent.com/u/2549496?v=3","gravatar_id":"","url":"https://api.github.com/users/ktaragorn","html_url":"https://github.com/ktaragorn","followers_url":"https://api.github.com/users/ktaragorn/followers","following_url":"https://api.github.com/users/ktaragorn/following{/other_user}","gists_url":"https://api.github.com/users/ktaragorn/gists{/gist_id}","starred_url":"https://api.github.com/users/ktaragorn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ktaragorn/subscriptions","organizations_url":"https://api.github.com/users/ktaragorn/orgs","repos_url":"https://api.github.com/users/ktaragorn/repos","events_url":"https://api.github.com/users/ktaragorn/events{/privacy}","received_events_url":"https://api.github.com/users/ktaragorn/received_events","type":"User","site_admin":false},"created_at":"2017-01-06T02:54:33Z","updated_at":"2017-01-06T02:54:33Z","body":"@LiamMcArthur Glad I could help!"}}
{"actor":{"display_login":"ktaragorn"}}