{"action":"opened","issue":{"url":"https://api.github.com/repos/select2/select2/issues/3640","labels_url":"https://api.github.com/repos/select2/select2/issues/3640/labels{/name}","comments_url":"https://api.github.com/repos/select2/select2/issues/3640/comments","events_url":"https://api.github.com/repos/select2/select2/issues/3640/events","html_url":"https://github.com/select2/select2/issues/3640","id":98825894,"number":3640,"title":"Is it possible to do multiple partial word matches?","user":{"login":"Capncavedan","id":683970,"avatar_url":"https://avatars.githubusercontent.com/u/683970?v=3","gravatar_id":"","url":"https://api.github.com/users/Capncavedan","html_url":"https://github.com/Capncavedan","followers_url":"https://api.github.com/users/Capncavedan/followers","following_url":"https://api.github.com/users/Capncavedan/following{/other_user}","gists_url":"https://api.github.com/users/Capncavedan/gists{/gist_id}","starred_url":"https://api.github.com/users/Capncavedan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Capncavedan/subscriptions","organizations_url":"https://api.github.com/users/Capncavedan/orgs","repos_url":"https://api.github.com/users/Capncavedan/repos","events_url":"https://api.github.com/users/Capncavedan/events{/privacy}","received_events_url":"https://api.github.com/users/Capncavedan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-03T19:52:26Z","updated_at":"2015-08-03T19:52:26Z","closed_at":null,"body":"The default functionality of the matcher is to match case-insensitively on a substring, which is generally great.\r\n\r\nHowever, I have a use case where I'd like to match entries based on the presence of all my search tokens anywhere in the string.\r\n\r\nGiven the trivial example below, I'd like to be able to enter \"something awesome\" and have it match the \"something really awesome\" item.\r\n\r\n````javascript\r\n      var data = [\r\n        { id: 0, text: 'enhancement' },\r\n        { id: 1, text: 'bug' },\r\n        { id: 2, text: 'duplicate' },\r\n        { id: 3, text: 'invalid' },\r\n        { id: 4, text: 'wontfix' },\r\n        { id: 5, text: 'something really awesome' },\r\n      ];\r\n\r\n      $(\"#find-existing\").select2({\r\n        placeholder: \"Pre-fill using existing data\",\r\n        allowClear: true,\r\n        data: data\r\n      });\r\n````\r\n\r\nOur use case is to construct a string with business name complete with \"DBA\", city, and US state, and match on those regardless of order.  Something like:\r\n\r\ndata string: \"Smith Painting, LLC dba Smith & Sons / Santa Fe / NM\"\r\nsearch string: \"Smith Paint Santa Fe\"\r\n\r\nand find the match.\r\n\r\nIs there a facility for this currently? Or a custom matcher you're aware of?\r\n"}}