{"action":"created","issue":{"url":"https://api.github.com/repos/elastic/elasticsearch-js/issues/506","repository_url":"https://api.github.com/repos/elastic/elasticsearch-js","labels_url":"https://api.github.com/repos/elastic/elasticsearch-js/issues/506/labels{/name}","comments_url":"https://api.github.com/repos/elastic/elasticsearch-js/issues/506/comments","events_url":"https://api.github.com/repos/elastic/elasticsearch-js/issues/506/events","html_url":"https://github.com/elastic/elasticsearch-js/issues/506","id":208851296,"number":506,"title":" strict match","user":{"login":"shivshankar3578","id":10707846,"avatar_url":"https://avatars.githubusercontent.com/u/10707846?v=3","gravatar_id":"","url":"https://api.github.com/users/shivshankar3578","html_url":"https://github.com/shivshankar3578","followers_url":"https://api.github.com/users/shivshankar3578/followers","following_url":"https://api.github.com/users/shivshankar3578/following{/other_user}","gists_url":"https://api.github.com/users/shivshankar3578/gists{/gist_id}","starred_url":"https://api.github.com/users/shivshankar3578/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shivshankar3578/subscriptions","organizations_url":"https://api.github.com/users/shivshankar3578/orgs","repos_url":"https://api.github.com/users/shivshankar3578/repos","events_url":"https://api.github.com/users/shivshankar3578/events{/privacy}","received_events_url":"https://api.github.com/users/shivshankar3578/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-02-20T11:19:39Z","updated_at":"2017-02-21T16:14:57Z","closed_at":"2017-02-21T16:14:57Z","body":"can anyone tell me how to strict match in elasticsearch-js. here is my search\r\n\r\n```\r\nclient.search({{\r\n  index: 'hash_tag',\r\n  type: 'hash_tag',\r\n  lenient:false,\r\n  body: {\r\n    query: {\r\n      match: {\r\n        tag_name: 'hash tag 1'\r\n      }\r\n    }\r\n  }\r\n}).then(function (body) {\r\n    console.log(\"body\", JSON.stringify(body));\r\n  }, function (error) {\r\n    console.trace(error.message);\r\n})\r\n```\r\n\r\nthis query search either **hash, tag ,1** i'm looking for exact whole string match.here is my example index style.\r\n```\r\n\r\n{\r\n  \"_index\": \"hash_tag\",\r\n  \"_type\": \"hash_tag\",\r\n  \"_id\": \"3483\",\r\n  \"_score\": 0.019691018,\r\n  \"_source\": {\r\n    \"id\": \"3483\",\r\n    \"labels\": [\r\n      \"hash_tag\"\r\n    ],\r\n    \"tag_name\": \"hash tag 2\"\r\n  }\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/elastic/elasticsearch-js/issues/comments/281391827","html_url":"https://github.com/elastic/elasticsearch-js/issues/506#issuecomment-281391827","issue_url":"https://api.github.com/repos/elastic/elasticsearch-js/issues/506","id":281391827,"user":{"login":"spalger","id":1329312,"avatar_url":"https://avatars.githubusercontent.com/u/1329312?v=3","gravatar_id":"","url":"https://api.github.com/users/spalger","html_url":"https://github.com/spalger","followers_url":"https://api.github.com/users/spalger/followers","following_url":"https://api.github.com/users/spalger/following{/other_user}","gists_url":"https://api.github.com/users/spalger/gists{/gist_id}","starred_url":"https://api.github.com/users/spalger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spalger/subscriptions","organizations_url":"https://api.github.com/users/spalger/orgs","repos_url":"https://api.github.com/users/spalger/repos","events_url":"https://api.github.com/users/spalger/events{/privacy}","received_events_url":"https://api.github.com/users/spalger/received_events","type":"User","site_admin":false},"created_at":"2017-02-21T16:14:57Z","updated_at":"2017-02-21T16:14:57Z","body":"Looks like you need to create a `keyword` type field, but I'm closing this because this issue tracker is for bugs and https://discuss.elastic.co/c/elasticsearch is more appropriate for support/help."}}
{"actor":{"display_login":"spalger"}}