{"action":"created","issue":{"url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/4220","labels_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/4220/labels{/name}","comments_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/4220/comments","events_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/4220/events","html_url":"https://github.com/CocoaPods/CocoaPods/issues/4220","id":107351698,"number":4220,"title":"[search] Enabling approximate matching for `pod search`","user":{"login":"manuyavuz","id":1665371,"avatar_url":"https://avatars.githubusercontent.com/u/1665371?v=3","gravatar_id":"","url":"https://api.github.com/users/manuyavuz","html_url":"https://github.com/manuyavuz","followers_url":"https://api.github.com/users/manuyavuz/followers","following_url":"https://api.github.com/users/manuyavuz/following{/other_user}","gists_url":"https://api.github.com/users/manuyavuz/gists{/gist_id}","starred_url":"https://api.github.com/users/manuyavuz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manuyavuz/subscriptions","organizations_url":"https://api.github.com/users/manuyavuz/orgs","repos_url":"https://api.github.com/users/manuyavuz/repos","events_url":"https://api.github.com/users/manuyavuz/events{/privacy}","received_events_url":"https://api.github.com/users/manuyavuz/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-09-19T19:23:34Z","updated_at":"2015-10-03T19:46:18Z","closed_at":"2015-10-03T19:46:18Z","body":"Hi,\r\n\r\nI wish to hear from you about whether providing an approximate string matching policy for `pod search` would be a valuable enhancement. \r\n\r\nCurrently it has a --regex option which provides a way to make fuzzy searches intentionally. However, the default search works only if a pod contains __exactly__ the given query string.\r\n\r\nWe may provide an approximate search policy (e.g. using edit distance for the simplest case) by default in order to be able to give results even if user makes some typo like missing a character or typing a wrong character inside the query.\r\n\r\nI can make some prototype implementation to see the effects on both search results and the performance, but first I want to be sure that it would worth to give an effort. Do you have any statistics on the usage for `pod search` command? I personally use it but maybe the majority is using the cocoapods.org to search for pods.\r\n\r\nI appreciate any feedback!"},"comment":{"url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/comments/145281596","html_url":"https://github.com/CocoaPods/CocoaPods/issues/4220#issuecomment-145281596","issue_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/4220","id":145281596,"user":{"login":"floere","id":3022,"avatar_url":"https://avatars.githubusercontent.com/u/3022?v=3","gravatar_id":"","url":"https://api.github.com/users/floere","html_url":"https://github.com/floere","followers_url":"https://api.github.com/users/floere/followers","following_url":"https://api.github.com/users/floere/following{/other_user}","gists_url":"https://api.github.com/users/floere/gists{/gist_id}","starred_url":"https://api.github.com/users/floere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/floere/subscriptions","organizations_url":"https://api.github.com/users/floere/orgs","repos_url":"https://api.github.com/users/floere/repos","events_url":"https://api.github.com/users/floere/events{/privacy}","received_events_url":"https://api.github.com/users/floere/received_events","type":"User","site_admin":false},"created_at":"2015-10-03T19:46:18Z","updated_at":"2015-10-03T19:46:18Z","body":"@manuyavuz I've actually removed (explicit) fuzzy search from cocoapods.org since it was used so little (and, in this type of search it is not as useful as in full text searching)."}}