{"action":"opened","issue":{"url":"https://api.github.com/repos/medcl/elasticsearch-analysis-ik/issues/562","repository_url":"https://api.github.com/repos/medcl/elasticsearch-analysis-ik","labels_url":"https://api.github.com/repos/medcl/elasticsearch-analysis-ik/issues/562/labels{/name}","comments_url":"https://api.github.com/repos/medcl/elasticsearch-analysis-ik/issues/562/comments","events_url":"https://api.github.com/repos/medcl/elasticsearch-analysis-ik/issues/562/events","html_url":"https://github.com/medcl/elasticsearch-analysis-ik/issues/562","id":333977682,"node_id":"MDU6SXNzdWUzMzM5Nzc2ODI=","number":562,"title":"spring boot2.x 集成elasticsearch 无法加载 elasticsearch-analysis-ik分词器","user":{"login":"ft0907","id":11922275,"node_id":"MDQ6VXNlcjExOTIyMjc1","avatar_url":"https://avatars3.githubusercontent.com/u/11922275?v=4","gravatar_id":"","url":"https://api.github.com/users/ft0907","html_url":"https://github.com/ft0907","followers_url":"https://api.github.com/users/ft0907/followers","following_url":"https://api.github.com/users/ft0907/following{/other_user}","gists_url":"https://api.github.com/users/ft0907/gists{/gist_id}","starred_url":"https://api.github.com/users/ft0907/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ft0907/subscriptions","organizations_url":"https://api.github.com/users/ft0907/orgs","repos_url":"https://api.github.com/users/ft0907/repos","events_url":"https://api.github.com/users/ft0907/events{/privacy}","received_events_url":"https://api.github.com/users/ft0907/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-20T08:39:15Z","updated_at":"2018-06-20T08:39:15Z","closed_at":null,"author_association":"NONE","body":"`@Getter\r\n@Setter\r\n@Document(indexName = \"contenttag\", type = \"tag\")\r\npublic class ContentTagEs {\r\n\r\n\t@Id\r\n\tprivate String id;\r\n\r\n\t@Field(type = FieldType.Text, searchAnalyzer = \"ik_max_word\", analyzer = \"ik_max_word\")\r\n\tprivate String title;\r\n\r\n}`\r\n\r\nspring boot 2.0.2 \r\nspring data elasticsearch 3.0.6\r\n\r\n使用docker部署\r\nes服务器  5.5.3\r\nelasticsearch-analysis-ik 5.5.3\r\n\r\n使用9200端口测试分词没有问题， 但是使用spring data 集成时 只要使用 searchAnalyzer或 analyzer 注解就无法生成mapping \r\n\r\n控制台错误如下：\r\nfailed to load elasticsearch nodes: org.elasticsearch.index.mapper.MapperParsingException: Mapping definition for [title] has unsupported parameters: searchAnalyzer [ik_max_word] not found for field \r\n\r\n尝试使用的配置文件mapping.json 没有问题，然后更换了ansj分词插件也可以正常运行。 对于安装ik插件后 spring data 无法加载到这个插件，作者是否有好的解决方法？\r\n\r\n\r\n\r\n\r\n"}}
{"actor":{"display_login":"ft0907"}}