{"action":"created","comment":{"url":"https://api.github.com/repos/CocoaPods/Core/pulls/comments/42463511","id":42463511,"diff_hunk":"@@ -198,26 +187,34 @@ def update_search_index(search_data)\n       # @param  [Set] set\n       #         The set for which the information is needed.\n       #\n-      # @note   If the specification can't load an empty hash is returned and\n+      # @note   If the specification can't load an empty array is returned and\n       #         a warning is printed.\n       #\n       # @note   For compatibility with non Ruby clients a strings are used\n       #         instead of symbols for the keys.\n       #\n-      # @return [Hash{String=>String}] A hash with the search information.\n+      # @return [Array<String>] An array of words contained by the set's search related information.\n       #\n-      def search_data_from_set(set)\n-        result = {}\n+      def word_list_from_set(set)\n         spec = set.specification\n-        result['version'] = spec.version.to_s\n-        result['summary'] = spec.summary\n-        result['description'] = spec.description\n-        result['authors'] = spec.authors.keys.sort * ', '\n-        result\n+        string = set.name.dup\n+        if spec.summary\n+          string << ' ' << spec.summary\n+        end\n+        if spec.description\n+          string << ' ' << spec.description\n+        end\n+        if spec.authors\n+          spec.authors.each_pair do |k, v|\n+            string << ' ' << k if k\n+            string << ' ' << v if v\n+          end\n+        end\n+        string.gsub(/\\s+/m, ' ').strip.split(' ').uniq","path":"lib/cocoapods-core/source/aggregate.rb","position":156,"original_position":156,"commit_id":"01cd7397331143f36e3a2f048fcbd0f898a33def","original_commit_id":"01cd7397331143f36e3a2f048fcbd0f898a33def","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},"body":"`string.split` is the best way. I'll stick to it.","created_at":"2015-10-20T07:30:39Z","updated_at":"2015-10-20T07:30:39Z","html_url":"https://github.com/CocoaPods/Core/pull/265#discussion_r42463511","pull_request_url":"https://api.github.com/repos/CocoaPods/Core/pulls/265","_links":{"self":{"href":"https://api.github.com/repos/CocoaPods/Core/pulls/comments/42463511"},"html":{"href":"https://github.com/CocoaPods/Core/pull/265#discussion_r42463511"},"pull_request":{"href":"https://api.github.com/repos/CocoaPods/Core/pulls/265"}}},"pull_request":{"url":"https://api.github.com/repos/CocoaPods/Core/pulls/265","id":45818780,"html_url":"https://github.com/CocoaPods/Core/pull/265","diff_url":"https://github.com/CocoaPods/Core/pull/265.diff","patch_url":"https://github.com/CocoaPods/Core/pull/265.patch","issue_url":"https://api.github.com/repos/CocoaPods/Core/issues/265","number":265,"state":"open","locked":false,"title":"Changes search index format to fasten `pod search --full` command.","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},"body":"Detailed discussion can be found here: CocoaPods/cocoapods-search#8\r\n\r\n- Previous implementation was having the drawback of traversing and performing `gsub` on all index strings for each pod specification.\r\n- New implementation stores words as keys and list of pods containing corresponding word inside their specification as the values for corresponding hash keys. By this way, sources manager can perform a faster search operation.","created_at":"2015-09-23T19:10:46Z","updated_at":"2015-10-20T07:30:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c9ae18bcbf58a285bca604899731c4d3b595c05d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/CocoaPods/Core/pulls/265/commits","review_comments_url":"https://api.github.com/repos/CocoaPods/Core/pulls/265/comments","review_comment_url":"https://api.github.com/repos/CocoaPods/Core/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CocoaPods/Core/issues/265/comments","statuses_url":"https://api.github.com/repos/CocoaPods/Core/statuses/01cd7397331143f36e3a2f048fcbd0f898a33def","head":{"label":"manuyavuz:improvement/searchPerformance","ref":"improvement/searchPerformance","sha":"01cd7397331143f36e3a2f048fcbd0f898a33def","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},"repo":{"id":43000033,"name":"Core","full_name":"manuyavuz/Core","owner":{"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},"private":false,"html_url":"https://github.com/manuyavuz/Core","description":"The models used within the CocoaPods gem","fork":true,"url":"https://api.github.com/repos/manuyavuz/Core","forks_url":"https://api.github.com/repos/manuyavuz/Core/forks","keys_url":"https://api.github.com/repos/manuyavuz/Core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/manuyavuz/Core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/manuyavuz/Core/teams","hooks_url":"https://api.github.com/repos/manuyavuz/Core/hooks","issue_events_url":"https://api.github.com/repos/manuyavuz/Core/issues/events{/number}","events_url":"https://api.github.com/repos/manuyavuz/Core/events","assignees_url":"https://api.github.com/repos/manuyavuz/Core/assignees{/user}","branches_url":"https://api.github.com/repos/manuyavuz/Core/branches{/branch}","tags_url":"https://api.github.com/repos/manuyavuz/Core/tags","blobs_url":"https://api.github.com/repos/manuyavuz/Core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/manuyavuz/Core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/manuyavuz/Core/git/refs{/sha}","trees_url":"https://api.github.com/repos/manuyavuz/Core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/manuyavuz/Core/statuses/{sha}","languages_url":"https://api.github.com/repos/manuyavuz/Core/languages","stargazers_url":"https://api.github.com/repos/manuyavuz/Core/stargazers","contributors_url":"https://api.github.com/repos/manuyavuz/Core/contributors","subscribers_url":"https://api.github.com/repos/manuyavuz/Core/subscribers","subscription_url":"https://api.github.com/repos/manuyavuz/Core/subscription","commits_url":"https://api.github.com/repos/manuyavuz/Core/commits{/sha}","git_commits_url":"https://api.github.com/repos/manuyavuz/Core/git/commits{/sha}","comments_url":"https://api.github.com/repos/manuyavuz/Core/comments{/number}","issue_comment_url":"https://api.github.com/repos/manuyavuz/Core/issues/comments{/number}","contents_url":"https://api.github.com/repos/manuyavuz/Core/contents/{+path}","compare_url":"https://api.github.com/repos/manuyavuz/Core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/manuyavuz/Core/merges","archive_url":"https://api.github.com/repos/manuyavuz/Core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/manuyavuz/Core/downloads","issues_url":"https://api.github.com/repos/manuyavuz/Core/issues{/number}","pulls_url":"https://api.github.com/repos/manuyavuz/Core/pulls{/number}","milestones_url":"https://api.github.com/repos/manuyavuz/Core/milestones{/number}","notifications_url":"https://api.github.com/repos/manuyavuz/Core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/manuyavuz/Core/labels{/name}","releases_url":"https://api.github.com/repos/manuyavuz/Core/releases{/id}","created_at":"2015-09-23T12:40:22Z","updated_at":"2015-09-23T12:40:26Z","pushed_at":"2015-10-19T12:47:46Z","git_url":"git://github.com/manuyavuz/Core.git","ssh_url":"git@github.com:manuyavuz/Core.git","clone_url":"https://github.com/manuyavuz/Core.git","svn_url":"https://github.com/manuyavuz/Core","homepage":"","size":11740,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"CocoaPods:master","ref":"master","sha":"8dcb8cbb3694102b1b391d4c0dd483339f9e5064","user":{"login":"CocoaPods","id":1189714,"avatar_url":"https://avatars.githubusercontent.com/u/1189714?v=3","gravatar_id":"","url":"https://api.github.com/users/CocoaPods","html_url":"https://github.com/CocoaPods","followers_url":"https://api.github.com/users/CocoaPods/followers","following_url":"https://api.github.com/users/CocoaPods/following{/other_user}","gists_url":"https://api.github.com/users/CocoaPods/gists{/gist_id}","starred_url":"https://api.github.com/users/CocoaPods/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CocoaPods/subscriptions","organizations_url":"https://api.github.com/users/CocoaPods/orgs","repos_url":"https://api.github.com/users/CocoaPods/repos","events_url":"https://api.github.com/users/CocoaPods/events{/privacy}","received_events_url":"https://api.github.com/users/CocoaPods/received_events","type":"Organization","site_admin":false},"repo":{"id":6612466,"name":"Core","full_name":"CocoaPods/Core","owner":{"login":"CocoaPods","id":1189714,"avatar_url":"https://avatars.githubusercontent.com/u/1189714?v=3","gravatar_id":"","url":"https://api.github.com/users/CocoaPods","html_url":"https://github.com/CocoaPods","followers_url":"https://api.github.com/users/CocoaPods/followers","following_url":"https://api.github.com/users/CocoaPods/following{/other_user}","gists_url":"https://api.github.com/users/CocoaPods/gists{/gist_id}","starred_url":"https://api.github.com/users/CocoaPods/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CocoaPods/subscriptions","organizations_url":"https://api.github.com/users/CocoaPods/orgs","repos_url":"https://api.github.com/users/CocoaPods/repos","events_url":"https://api.github.com/users/CocoaPods/events{/privacy}","received_events_url":"https://api.github.com/users/CocoaPods/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CocoaPods/Core","description":"The models used within the CocoaPods gem","fork":false,"url":"https://api.github.com/repos/CocoaPods/Core","forks_url":"https://api.github.com/repos/CocoaPods/Core/forks","keys_url":"https://api.github.com/repos/CocoaPods/Core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CocoaPods/Core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CocoaPods/Core/teams","hooks_url":"https://api.github.com/repos/CocoaPods/Core/hooks","issue_events_url":"https://api.github.com/repos/CocoaPods/Core/issues/events{/number}","events_url":"https://api.github.com/repos/CocoaPods/Core/events","assignees_url":"https://api.github.com/repos/CocoaPods/Core/assignees{/user}","branches_url":"https://api.github.com/repos/CocoaPods/Core/branches{/branch}","tags_url":"https://api.github.com/repos/CocoaPods/Core/tags","blobs_url":"https://api.github.com/repos/CocoaPods/Core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CocoaPods/Core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CocoaPods/Core/git/refs{/sha}","trees_url":"https://api.github.com/repos/CocoaPods/Core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CocoaPods/Core/statuses/{sha}","languages_url":"https://api.github.com/repos/CocoaPods/Core/languages","stargazers_url":"https://api.github.com/repos/CocoaPods/Core/stargazers","contributors_url":"https://api.github.com/repos/CocoaPods/Core/contributors","subscribers_url":"https://api.github.com/repos/CocoaPods/Core/subscribers","subscription_url":"https://api.github.com/repos/CocoaPods/Core/subscription","commits_url":"https://api.github.com/repos/CocoaPods/Core/commits{/sha}","git_commits_url":"https://api.github.com/repos/CocoaPods/Core/git/commits{/sha}","comments_url":"https://api.github.com/repos/CocoaPods/Core/comments{/number}","issue_comment_url":"https://api.github.com/repos/CocoaPods/Core/issues/comments{/number}","contents_url":"https://api.github.com/repos/CocoaPods/Core/contents/{+path}","compare_url":"https://api.github.com/repos/CocoaPods/Core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CocoaPods/Core/merges","archive_url":"https://api.github.com/repos/CocoaPods/Core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CocoaPods/Core/downloads","issues_url":"https://api.github.com/repos/CocoaPods/Core/issues{/number}","pulls_url":"https://api.github.com/repos/CocoaPods/Core/pulls{/number}","milestones_url":"https://api.github.com/repos/CocoaPods/Core/milestones{/number}","notifications_url":"https://api.github.com/repos/CocoaPods/Core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CocoaPods/Core/labels{/name}","releases_url":"https://api.github.com/repos/CocoaPods/Core/releases{/id}","created_at":"2012-11-09T11:24:08Z","updated_at":"2015-09-30T02:07:33Z","pushed_at":"2015-10-19T12:47:46Z","git_url":"git://github.com/CocoaPods/Core.git","ssh_url":"git@github.com:CocoaPods/Core.git","clone_url":"https://github.com/CocoaPods/Core.git","svn_url":"https://github.com/CocoaPods/Core","homepage":"","size":15131,"stargazers_count":29,"watchers_count":29,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":69,"mirror_url":null,"open_issues_count":11,"forks":69,"open_issues":11,"watchers":29,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/CocoaPods/Core/pulls/265"},"html":{"href":"https://github.com/CocoaPods/Core/pull/265"},"issue":{"href":"https://api.github.com/repos/CocoaPods/Core/issues/265"},"comments":{"href":"https://api.github.com/repos/CocoaPods/Core/issues/265/comments"},"review_comments":{"href":"https://api.github.com/repos/CocoaPods/Core/pulls/265/comments"},"review_comment":{"href":"https://api.github.com/repos/CocoaPods/Core/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CocoaPods/Core/pulls/265/commits"},"statuses":{"href":"https://api.github.com/repos/CocoaPods/Core/statuses/01cd7397331143f36e3a2f048fcbd0f898a33def"}}}}