{"action":"created","issue":{"url":"https://api.github.com/repos/pengcong90/elasticsearch-analysis-hanlp/issues/16","repository_url":"https://api.github.com/repos/pengcong90/elasticsearch-analysis-hanlp","labels_url":"https://api.github.com/repos/pengcong90/elasticsearch-analysis-hanlp/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/pengcong90/elasticsearch-analysis-hanlp/issues/16/comments","events_url":"https://api.github.com/repos/pengcong90/elasticsearch-analysis-hanlp/issues/16/events","html_url":"https://github.com/pengcong90/elasticsearch-analysis-hanlp/issues/16","id":388080182,"node_id":"MDU6SXNzdWUzODgwODAxODI=","number":16,"title":"请教下如何指定查询的分析器呢？","user":{"login":"jeetom","id":38598887,"node_id":"MDQ6VXNlcjM4NTk4ODg3","avatar_url":"https://avatars1.githubusercontent.com/u/38598887?v=4","gravatar_id":"","url":"https://api.github.com/users/jeetom","html_url":"https://github.com/jeetom","followers_url":"https://api.github.com/users/jeetom/followers","following_url":"https://api.github.com/users/jeetom/following{/other_user}","gists_url":"https://api.github.com/users/jeetom/gists{/gist_id}","starred_url":"https://api.github.com/users/jeetom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeetom/subscriptions","organizations_url":"https://api.github.com/users/jeetom/orgs","repos_url":"https://api.github.com/users/jeetom/repos","events_url":"https://api.github.com/users/jeetom/events{/privacy}","received_events_url":"https://api.github.com/users/jeetom/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-06T06:53:58Z","updated_at":"2018-12-06T08:06:20Z","closed_at":null,"author_association":"NONE","body":"请教下如何只定查询的分析器呢？\r\nGET /product/_search\r\n  {\r\n  \"query\": { \r\n    \"multi_match\" : {\r\n      \"query\":    \"松鼠\", \r\n      \"fields\": [ \"name\", \"keywords\"] \r\n    } \r\n  }\r\n}\r\n这样不指定查询分析器，感觉查询的结果还是拆分成了单个字去查询了 \r\n\r\n下面这一步已经通过了\r\nGET /_analyze\r\n{\r\n\"analyzer\":\"hanlp-index\",\r\n\"text\":\"三只松鼠\"\r\n}\r\n"},"comment":{"url":"https://api.github.com/repos/pengcong90/elasticsearch-analysis-hanlp/issues/comments/444783307","html_url":"https://github.com/pengcong90/elasticsearch-analysis-hanlp/issues/16#issuecomment-444783307","issue_url":"https://api.github.com/repos/pengcong90/elasticsearch-analysis-hanlp/issues/16","id":444783307,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NDc4MzMwNw==","user":{"login":"ZengJinRong","id":38041129,"node_id":"MDQ6VXNlcjM4MDQxMTI5","avatar_url":"https://avatars1.githubusercontent.com/u/38041129?v=4","gravatar_id":"","url":"https://api.github.com/users/ZengJinRong","html_url":"https://github.com/ZengJinRong","followers_url":"https://api.github.com/users/ZengJinRong/followers","following_url":"https://api.github.com/users/ZengJinRong/following{/other_user}","gists_url":"https://api.github.com/users/ZengJinRong/gists{/gist_id}","starred_url":"https://api.github.com/users/ZengJinRong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZengJinRong/subscriptions","organizations_url":"https://api.github.com/users/ZengJinRong/orgs","repos_url":"https://api.github.com/users/ZengJinRong/repos","events_url":"https://api.github.com/users/ZengJinRong/events{/privacy}","received_events_url":"https://api.github.com/users/ZengJinRong/received_events","type":"User","site_admin":false},"created_at":"2018-12-06T08:06:20Z","updated_at":"2018-12-06T08:06:20Z","author_association":"NONE","body":"可以在索引刚创建，还未导入数据时\r\nPOST /product/type/_mapping\r\n{\r\n  \"properties\": {\r\n    \"name\": {\r\n      \"type\": \"text\",\r\n      \"analyzer\": \"hanlp-index\",\r\n      \"search_analyzer\": \"hanlp-smart\"\r\n    },\r\n    \"keywords\": {\r\n      \"type\": \"text\",\r\n      \"analyzer\": \"hanlp-index\",\r\n      \"search_analyzer\": \"hanlp-smart\"\r\n    }\r\n  }\r\n}"}}
{"actor":{"display_login":"ZengJinRong"}}