{"action":"created","issue":{"url":"https://api.github.com/repos/medcl/elasticsearch-analysis-ik/issues/61","labels_url":"https://api.github.com/repos/medcl/elasticsearch-analysis-ik/issues/61/labels{/name}","comments_url":"https://api.github.com/repos/medcl/elasticsearch-analysis-ik/issues/61/comments","events_url":"https://api.github.com/repos/medcl/elasticsearch-analysis-ik/issues/61/events","html_url":"https://github.com/medcl/elasticsearch-analysis-ik/issues/61","id":63642623,"number":61,"title":"有没有办法和内置的 html_strip char_filter 搭配使用？","user":{"login":"sailxjx","id":909853,"avatar_url":"https://avatars.githubusercontent.com/u/909853?v=3","gravatar_id":"","url":"https://api.github.com/users/sailxjx","html_url":"https://github.com/sailxjx","followers_url":"https://api.github.com/users/sailxjx/followers","following_url":"https://api.github.com/users/sailxjx/following{/other_user}","gists_url":"https://api.github.com/users/sailxjx/gists{/gist_id}","starred_url":"https://api.github.com/users/sailxjx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sailxjx/subscriptions","organizations_url":"https://api.github.com/users/sailxjx/orgs","repos_url":"https://api.github.com/users/sailxjx/repos","events_url":"https://api.github.com/users/sailxjx/events{/privacy}","received_events_url":"https://api.github.com/users/sailxjx/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-03-23T06:48:42Z","updated_at":"2015-12-24T12:07:36Z","closed_at":"2015-12-24T12:07:36Z","body":"分词之前需要把 html 过滤掉，就需要和 html_strip 一起使用，我使用了下面的配置，但是没有效果\r\n\r\n```json\r\n{\r\n  \"index\": {\r\n    \"analysis\": {\r\n      \"analyzer\": {\r\n        \"ik\": {\r\n          \"alias\": [\r\n            \"ik_analyzer\"\r\n          ],\r\n          \"type\": \"org.elasticsearch.index.analysis.IkAnalyzerProvider\"\r\n        },\r\n        \"ik_html_strip\": {\r\n          \"type\": \"ik\",\r\n          \"use_smart\": false,\r\n          \"char_filter\": [\r\n            \"html_strip\"\r\n          ]\r\n        }\r\n      }\r\n    }\r\n  }\r\n}\r\n```\r\n\r\n有没有人能给一个成功的例子？"},"comment":{"url":"https://api.github.com/repos/medcl/elasticsearch-analysis-ik/issues/comments/167101355","html_url":"https://github.com/medcl/elasticsearch-analysis-ik/issues/61#issuecomment-167101355","issue_url":"https://api.github.com/repos/medcl/elasticsearch-analysis-ik/issues/61","id":167101355,"user":{"login":"medcl","id":64487,"avatar_url":"https://avatars.githubusercontent.com/u/64487?v=3","gravatar_id":"","url":"https://api.github.com/users/medcl","html_url":"https://github.com/medcl","followers_url":"https://api.github.com/users/medcl/followers","following_url":"https://api.github.com/users/medcl/following{/other_user}","gists_url":"https://api.github.com/users/medcl/gists{/gist_id}","starred_url":"https://api.github.com/users/medcl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/medcl/subscriptions","organizations_url":"https://api.github.com/users/medcl/orgs","repos_url":"https://api.github.com/users/medcl/repos","events_url":"https://api.github.com/users/medcl/events{/privacy}","received_events_url":"https://api.github.com/users/medcl/received_events","type":"User","site_admin":false},"created_at":"2015-12-24T12:07:36Z","updated_at":"2015-12-24T12:07:36Z","body":"请参见：https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis-custom-analyzer.html?q=custom"}}