{"action":"created","comment":{"url":"https://api.github.com/repos/ayende/ravendb/pulls/comments/71687458","id":71687458,"diff_hunk":"@@ -802,7 +803,20 @@ internal PriorityQueue<object[]> RetrieveTerms(RavenJObject jsonDocument)\n \n                 if (value == null) continue;\n \n-                AddTermFrequencies(new StringReader(value.ToString()), words, fieldName);\n+                switch (value.Type)\n+                {\n+                    case JTokenType.Array:\n+                        foreach (var item in (RavenJArray)value)\n+                        {\n+                            if (item.Type != JTokenType.String) break;\n+                            AddTermFrequencies(new StringReader(item.Value<string>()), words, fieldName);\n+                        }\n+                        break;\n+                    case JTokenType.String:\n+                        AddTermFrequencies(new StringReader(value.Value<string>()), words, fieldName);\n+                        break;\n+                    default: continue;","path":"Raven.Database/Bundles/MoreLikeThis/MoreLikeThis.cs","position":null,"original_position":25,"commit_id":"a49e346990592008ff5d4b0b0009ff97ff1e844f","original_commit_id":"61533e521963e2d280031d522a016949c133143d","user":{"login":"fitzchak","id":629734,"avatar_url":"https://avatars.githubusercontent.com/u/629734?v=3","gravatar_id":"","url":"https://api.github.com/users/fitzchak","html_url":"https://github.com/fitzchak","followers_url":"https://api.github.com/users/fitzchak/followers","following_url":"https://api.github.com/users/fitzchak/following{/other_user}","gists_url":"https://api.github.com/users/fitzchak/gists{/gist_id}","starred_url":"https://api.github.com/users/fitzchak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fitzchak/subscriptions","organizations_url":"https://api.github.com/users/fitzchak/orgs","repos_url":"https://api.github.com/users/fitzchak/repos","events_url":"https://api.github.com/users/fitzchak/events{/privacy}","received_events_url":"https://api.github.com/users/fitzchak/received_events","type":"User","site_admin":false},"body":"Great :100: \r\nI'll merge and a new build will be out soon.","created_at":"2016-07-21T11:18:18Z","updated_at":"2016-07-21T11:18:18Z","html_url":"https://github.com/ayende/ravendb/pull/4048#discussion_r71687458","pull_request_url":"https://api.github.com/repos/ayende/ravendb/pulls/4048","_links":{"self":{"href":"https://api.github.com/repos/ayende/ravendb/pulls/comments/71687458"},"html":{"href":"https://github.com/ayende/ravendb/pull/4048#discussion_r71687458"},"pull_request":{"href":"https://api.github.com/repos/ayende/ravendb/pulls/4048"}}},"pull_request":{"url":"https://api.github.com/repos/ayende/ravendb/pulls/4048","id":78286828,"html_url":"https://github.com/ayende/ravendb/pull/4048","diff_url":"https://github.com/ayende/ravendb/pull/4048.diff","patch_url":"https://github.com/ayende/ravendb/pull/4048.patch","issue_url":"https://api.github.com/repos/ayende/ravendb/issues/4048","number":4048,"state":"open","locked":false,"title":"RavenDB-4855 - Support arrays on dynamic documents for MoreLikeThis queries.","user":{"login":"ricardobrandao","id":2292745,"avatar_url":"https://avatars.githubusercontent.com/u/2292745?v=3","gravatar_id":"","url":"https://api.github.com/users/ricardobrandao","html_url":"https://github.com/ricardobrandao","followers_url":"https://api.github.com/users/ricardobrandao/followers","following_url":"https://api.github.com/users/ricardobrandao/following{/other_user}","gists_url":"https://api.github.com/users/ricardobrandao/gists{/gist_id}","starred_url":"https://api.github.com/users/ricardobrandao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ricardobrandao/subscriptions","organizations_url":"https://api.github.com/users/ricardobrandao/orgs","repos_url":"https://api.github.com/users/ricardobrandao/repos","events_url":"https://api.github.com/users/ricardobrandao/events{/privacy}","received_events_url":"https://api.github.com/users/ricardobrandao/received_events","type":"User","site_admin":false},"body":"We only deal with string and array of string values.\r\n\r\n@fitzchak this is an improvement to #4045.","created_at":"2016-07-21T09:46:55Z","updated_at":"2016-07-21T11:18:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0c2da916e2d89c43e0ddd0742f3ca625663a21fb","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/ayende/ravendb/pulls/4048/commits","review_comments_url":"https://api.github.com/repos/ayende/ravendb/pulls/4048/comments","review_comment_url":"https://api.github.com/repos/ayende/ravendb/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ayende/ravendb/issues/4048/comments","statuses_url":"https://api.github.com/repos/ayende/ravendb/statuses/a49e346990592008ff5d4b0b0009ff97ff1e844f","head":{"label":"ricardobrandao:v3.5","ref":"v3.5","sha":"a49e346990592008ff5d4b0b0009ff97ff1e844f","user":{"login":"ricardobrandao","id":2292745,"avatar_url":"https://avatars.githubusercontent.com/u/2292745?v=3","gravatar_id":"","url":"https://api.github.com/users/ricardobrandao","html_url":"https://github.com/ricardobrandao","followers_url":"https://api.github.com/users/ricardobrandao/followers","following_url":"https://api.github.com/users/ricardobrandao/following{/other_user}","gists_url":"https://api.github.com/users/ricardobrandao/gists{/gist_id}","starred_url":"https://api.github.com/users/ricardobrandao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ricardobrandao/subscriptions","organizations_url":"https://api.github.com/users/ricardobrandao/orgs","repos_url":"https://api.github.com/users/ricardobrandao/repos","events_url":"https://api.github.com/users/ricardobrandao/events{/privacy}","received_events_url":"https://api.github.com/users/ricardobrandao/received_events","type":"User","site_admin":false},"repo":{"id":39494092,"name":"ravendb","full_name":"ricardobrandao/ravendb","owner":{"login":"ricardobrandao","id":2292745,"avatar_url":"https://avatars.githubusercontent.com/u/2292745?v=3","gravatar_id":"","url":"https://api.github.com/users/ricardobrandao","html_url":"https://github.com/ricardobrandao","followers_url":"https://api.github.com/users/ricardobrandao/followers","following_url":"https://api.github.com/users/ricardobrandao/following{/other_user}","gists_url":"https://api.github.com/users/ricardobrandao/gists{/gist_id}","starred_url":"https://api.github.com/users/ricardobrandao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ricardobrandao/subscriptions","organizations_url":"https://api.github.com/users/ricardobrandao/orgs","repos_url":"https://api.github.com/users/ricardobrandao/repos","events_url":"https://api.github.com/users/ricardobrandao/events{/privacy}","received_events_url":"https://api.github.com/users/ricardobrandao/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ricardobrandao/ravendb","description":"A linq enabled document database for .NET","fork":true,"url":"https://api.github.com/repos/ricardobrandao/ravendb","forks_url":"https://api.github.com/repos/ricardobrandao/ravendb/forks","keys_url":"https://api.github.com/repos/ricardobrandao/ravendb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ricardobrandao/ravendb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ricardobrandao/ravendb/teams","hooks_url":"https://api.github.com/repos/ricardobrandao/ravendb/hooks","issue_events_url":"https://api.github.com/repos/ricardobrandao/ravendb/issues/events{/number}","events_url":"https://api.github.com/repos/ricardobrandao/ravendb/events","assignees_url":"https://api.github.com/repos/ricardobrandao/ravendb/assignees{/user}","branches_url":"https://api.github.com/repos/ricardobrandao/ravendb/branches{/branch}","tags_url":"https://api.github.com/repos/ricardobrandao/ravendb/tags","blobs_url":"https://api.github.com/repos/ricardobrandao/ravendb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ricardobrandao/ravendb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ricardobrandao/ravendb/git/refs{/sha}","trees_url":"https://api.github.com/repos/ricardobrandao/ravendb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ricardobrandao/ravendb/statuses/{sha}","languages_url":"https://api.github.com/repos/ricardobrandao/ravendb/languages","stargazers_url":"https://api.github.com/repos/ricardobrandao/ravendb/stargazers","contributors_url":"https://api.github.com/repos/ricardobrandao/ravendb/contributors","subscribers_url":"https://api.github.com/repos/ricardobrandao/ravendb/subscribers","subscription_url":"https://api.github.com/repos/ricardobrandao/ravendb/subscription","commits_url":"https://api.github.com/repos/ricardobrandao/ravendb/commits{/sha}","git_commits_url":"https://api.github.com/repos/ricardobrandao/ravendb/git/commits{/sha}","comments_url":"https://api.github.com/repos/ricardobrandao/ravendb/comments{/number}","issue_comment_url":"https://api.github.com/repos/ricardobrandao/ravendb/issues/comments{/number}","contents_url":"https://api.github.com/repos/ricardobrandao/ravendb/contents/{+path}","compare_url":"https://api.github.com/repos/ricardobrandao/ravendb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ricardobrandao/ravendb/merges","archive_url":"https://api.github.com/repos/ricardobrandao/ravendb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ricardobrandao/ravendb/downloads","issues_url":"https://api.github.com/repos/ricardobrandao/ravendb/issues{/number}","pulls_url":"https://api.github.com/repos/ricardobrandao/ravendb/pulls{/number}","milestones_url":"https://api.github.com/repos/ricardobrandao/ravendb/milestones{/number}","notifications_url":"https://api.github.com/repos/ricardobrandao/ravendb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ricardobrandao/ravendb/labels{/name}","releases_url":"https://api.github.com/repos/ricardobrandao/ravendb/releases{/id}","deployments_url":"https://api.github.com/repos/ricardobrandao/ravendb/deployments","created_at":"2015-07-22T08:15:28Z","updated_at":"2016-04-04T09:30:30Z","pushed_at":"2016-07-21T11:13:34Z","git_url":"git://github.com/ricardobrandao/ravendb.git","ssh_url":"git@github.com:ricardobrandao/ravendb.git","clone_url":"https://github.com/ricardobrandao/ravendb.git","svn_url":"https://github.com/ricardobrandao/ravendb","homepage":"http://ayende.com/Blog/","size":348326,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"ayende:v3.5","ref":"v3.5","sha":"685559e668836dcdbc93fa8cc0abb7be6f271dbd","user":{"login":"ayende","id":116915,"avatar_url":"https://avatars.githubusercontent.com/u/116915?v=3","gravatar_id":"","url":"https://api.github.com/users/ayende","html_url":"https://github.com/ayende","followers_url":"https://api.github.com/users/ayende/followers","following_url":"https://api.github.com/users/ayende/following{/other_user}","gists_url":"https://api.github.com/users/ayende/gists{/gist_id}","starred_url":"https://api.github.com/users/ayende/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ayende/subscriptions","organizations_url":"https://api.github.com/users/ayende/orgs","repos_url":"https://api.github.com/users/ayende/repos","events_url":"https://api.github.com/users/ayende/events{/privacy}","received_events_url":"https://api.github.com/users/ayende/received_events","type":"User","site_admin":false},"repo":{"id":904641,"name":"ravendb","full_name":"ayende/ravendb","owner":{"login":"ayende","id":116915,"avatar_url":"https://avatars.githubusercontent.com/u/116915?v=3","gravatar_id":"","url":"https://api.github.com/users/ayende","html_url":"https://github.com/ayende","followers_url":"https://api.github.com/users/ayende/followers","following_url":"https://api.github.com/users/ayende/following{/other_user}","gists_url":"https://api.github.com/users/ayende/gists{/gist_id}","starred_url":"https://api.github.com/users/ayende/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ayende/subscriptions","organizations_url":"https://api.github.com/users/ayende/orgs","repos_url":"https://api.github.com/users/ayende/repos","events_url":"https://api.github.com/users/ayende/events{/privacy}","received_events_url":"https://api.github.com/users/ayende/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ayende/ravendb","description":"A linq enabled document database for .NET","fork":true,"url":"https://api.github.com/repos/ayende/ravendb","forks_url":"https://api.github.com/repos/ayende/ravendb/forks","keys_url":"https://api.github.com/repos/ayende/ravendb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ayende/ravendb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ayende/ravendb/teams","hooks_url":"https://api.github.com/repos/ayende/ravendb/hooks","issue_events_url":"https://api.github.com/repos/ayende/ravendb/issues/events{/number}","events_url":"https://api.github.com/repos/ayende/ravendb/events","assignees_url":"https://api.github.com/repos/ayende/ravendb/assignees{/user}","branches_url":"https://api.github.com/repos/ayende/ravendb/branches{/branch}","tags_url":"https://api.github.com/repos/ayende/ravendb/tags","blobs_url":"https://api.github.com/repos/ayende/ravendb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ayende/ravendb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ayende/ravendb/git/refs{/sha}","trees_url":"https://api.github.com/repos/ayende/ravendb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ayende/ravendb/statuses/{sha}","languages_url":"https://api.github.com/repos/ayende/ravendb/languages","stargazers_url":"https://api.github.com/repos/ayende/ravendb/stargazers","contributors_url":"https://api.github.com/repos/ayende/ravendb/contributors","subscribers_url":"https://api.github.com/repos/ayende/ravendb/subscribers","subscription_url":"https://api.github.com/repos/ayende/ravendb/subscription","commits_url":"https://api.github.com/repos/ayende/ravendb/commits{/sha}","git_commits_url":"https://api.github.com/repos/ayende/ravendb/git/commits{/sha}","comments_url":"https://api.github.com/repos/ayende/ravendb/comments{/number}","issue_comment_url":"https://api.github.com/repos/ayende/ravendb/issues/comments{/number}","contents_url":"https://api.github.com/repos/ayende/ravendb/contents/{+path}","compare_url":"https://api.github.com/repos/ayende/ravendb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ayende/ravendb/merges","archive_url":"https://api.github.com/repos/ayende/ravendb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ayende/ravendb/downloads","issues_url":"https://api.github.com/repos/ayende/ravendb/issues{/number}","pulls_url":"https://api.github.com/repos/ayende/ravendb/pulls{/number}","milestones_url":"https://api.github.com/repos/ayende/ravendb/milestones{/number}","notifications_url":"https://api.github.com/repos/ayende/ravendb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ayende/ravendb/labels{/name}","releases_url":"https://api.github.com/repos/ayende/ravendb/releases{/id}","deployments_url":"https://api.github.com/repos/ayende/ravendb/deployments","created_at":"2010-09-12T05:30:13Z","updated_at":"2016-07-15T07:44:31Z","pushed_at":"2016-07-21T11:13:35Z","git_url":"git://github.com/ayende/ravendb.git","ssh_url":"git@github.com:ayende/ravendb.git","clone_url":"https://github.com/ayende/ravendb.git","svn_url":"https://github.com/ayende/ravendb","homepage":"http://ayende.com/Blog/","size":529006,"stargazers_count":283,"watchers_count":283,"language":"C#","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":142,"mirror_url":null,"open_issues_count":2,"forks":142,"open_issues":2,"watchers":283,"default_branch":"v3.5"}},"_links":{"self":{"href":"https://api.github.com/repos/ayende/ravendb/pulls/4048"},"html":{"href":"https://github.com/ayende/ravendb/pull/4048"},"issue":{"href":"https://api.github.com/repos/ayende/ravendb/issues/4048"},"comments":{"href":"https://api.github.com/repos/ayende/ravendb/issues/4048/comments"},"review_comments":{"href":"https://api.github.com/repos/ayende/ravendb/pulls/4048/comments"},"review_comment":{"href":"https://api.github.com/repos/ayende/ravendb/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ayende/ravendb/pulls/4048/commits"},"statuses":{"href":"https://api.github.com/repos/ayende/ravendb/statuses/a49e346990592008ff5d4b0b0009ff97ff1e844f"}}}}
{"actor":{"display_login":"fitzchak"}}