{"action":"created","issue":{"url":"https://api.github.com/repos/bells/elasticsearch-analysis-dynamic-synonym/issues/5","repository_url":"https://api.github.com/repos/bells/elasticsearch-analysis-dynamic-synonym","labels_url":"https://api.github.com/repos/bells/elasticsearch-analysis-dynamic-synonym/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/bells/elasticsearch-analysis-dynamic-synonym/issues/5/comments","events_url":"https://api.github.com/repos/bells/elasticsearch-analysis-dynamic-synonym/issues/5/events","html_url":"https://github.com/bells/elasticsearch-analysis-dynamic-synonym/pull/5","id":179092877,"number":5,"title":"将pool线程池修改为静态","user":{"login":"hailin0","id":14371345,"avatar_url":"https://avatars.githubusercontent.com/u/14371345?v=3","gravatar_id":"","url":"https://api.github.com/users/hailin0","html_url":"https://github.com/hailin0","followers_url":"https://api.github.com/users/hailin0/followers","following_url":"https://api.github.com/users/hailin0/following{/other_user}","gists_url":"https://api.github.com/users/hailin0/gists{/gist_id}","starred_url":"https://api.github.com/users/hailin0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hailin0/subscriptions","organizations_url":"https://api.github.com/users/hailin0/orgs","repos_url":"https://api.github.com/users/hailin0/repos","events_url":"https://api.github.com/users/hailin0/events{/privacy}","received_events_url":"https://api.github.com/users/hailin0/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-25T15:50:17Z","updated_at":"2016-10-09T06:19:59Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/bells/elasticsearch-analysis-dynamic-synonym/pulls/5","html_url":"https://github.com/bells/elasticsearch-analysis-dynamic-synonym/pull/5","diff_url":"https://github.com/bells/elasticsearch-analysis-dynamic-synonym/pull/5.diff","patch_url":"https://github.com/bells/elasticsearch-analysis-dynamic-synonym/pull/5.patch"},"body":"DynamicSynonymTokenFilterFactory类中调度线程池[pool](https://github.com/bells/elasticsearch-analysis-dynamic-synonym/blob/master/src/main/java/com/bellszhu/elasticsearch/plugin/synonym/analysis/DynamicSynonymTokenFilterFactory.java)\r\n为什么这个变量不是static 呢，我观察过同义词的初始化，每一个索引都会初始化一次，从监控中看到生成了多个对象。pool是线程池同时是检测更新的，一般频率会很低，并且这是针对同一个文件的更新，我感觉只需要一个池对象就能满足了，不知道你没有设置为静态是出于什么情况考虑的呢？ 另外，感谢查阅。"},"comment":{"url":"https://api.github.com/repos/bells/elasticsearch-analysis-dynamic-synonym/issues/comments/252467602","html_url":"https://github.com/bells/elasticsearch-analysis-dynamic-synonym/pull/5#issuecomment-252467602","issue_url":"https://api.github.com/repos/bells/elasticsearch-analysis-dynamic-synonym/issues/5","id":252467602,"user":{"login":"bells","id":1238221,"avatar_url":"https://avatars.githubusercontent.com/u/1238221?v=3","gravatar_id":"","url":"https://api.github.com/users/bells","html_url":"https://github.com/bells","followers_url":"https://api.github.com/users/bells/followers","following_url":"https://api.github.com/users/bells/following{/other_user}","gists_url":"https://api.github.com/users/bells/gists{/gist_id}","starred_url":"https://api.github.com/users/bells/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bells/subscriptions","organizations_url":"https://api.github.com/users/bells/orgs","repos_url":"https://api.github.com/users/bells/repos","events_url":"https://api.github.com/users/bells/events{/privacy}","received_events_url":"https://api.github.com/users/bells/received_events","type":"User","site_admin":false},"created_at":"2016-10-09T06:19:59Z","updated_at":"2016-10-09T06:19:59Z","body":"之前主要考虑到不同索引，用的是不同的同义词文件。。过几天我再认真看下吧！"}}
{"actor":{"display_login":"bells"}}