{"action":"created","issue":{"url":"https://api.github.com/repos/elastic/elasticsearch/issues/10147","labels_url":"https://api.github.com/repos/elastic/elasticsearch/issues/10147/labels{/name}","comments_url":"https://api.github.com/repos/elastic/elasticsearch/issues/10147/comments","events_url":"https://api.github.com/repos/elastic/elasticsearch/issues/10147/events","html_url":"https://github.com/elastic/elasticsearch/pull/10147","id":62794945,"number":10147,"title":"Validate API: provide more verbose explanation","user":{"login":"alexksikes","id":43475,"avatar_url":"https://avatars.githubusercontent.com/u/43475?v=3","gravatar_id":"","url":"https://api.github.com/users/alexksikes","html_url":"https://github.com/alexksikes","followers_url":"https://api.github.com/users/alexksikes/followers","following_url":"https://api.github.com/users/alexksikes/following{/other_user}","gists_url":"https://api.github.com/users/alexksikes/gists{/gist_id}","starred_url":"https://api.github.com/users/alexksikes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexksikes/subscriptions","organizations_url":"https://api.github.com/users/alexksikes/orgs","repos_url":"https://api.github.com/users/alexksikes/repos","events_url":"https://api.github.com/users/alexksikes/events{/privacy}","received_events_url":"https://api.github.com/users/alexksikes/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/elastic/elasticsearch/labels/enhancement","name":"enhancement","color":"4a4ea8"},{"url":"https://api.github.com/repos/elastic/elasticsearch/labels/review","name":"review","color":"0052cc"},{"url":"https://api.github.com/repos/elastic/elasticsearch/labels/v1.6.0","name":"v1.6.0","color":"dddddd"},{"url":"https://api.github.com/repos/elastic/elasticsearch/labels/v2.0.0","name":"v2.0.0","color":"dddddd"}],"state":"open","locked":false,"assignee":{"login":"s1monw","id":973334,"avatar_url":"https://avatars.githubusercontent.com/u/973334?v=3","gravatar_id":"","url":"https://api.github.com/users/s1monw","html_url":"https://github.com/s1monw","followers_url":"https://api.github.com/users/s1monw/followers","following_url":"https://api.github.com/users/s1monw/following{/other_user}","gists_url":"https://api.github.com/users/s1monw/gists{/gist_id}","starred_url":"https://api.github.com/users/s1monw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/s1monw/subscriptions","organizations_url":"https://api.github.com/users/s1monw/orgs","repos_url":"https://api.github.com/users/s1monw/repos","events_url":"https://api.github.com/users/s1monw/events{/privacy}","received_events_url":"https://api.github.com/users/s1monw/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2015-03-18T20:45:53Z","updated_at":"2015-03-20T19:42:51Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/elastic/elasticsearch/pulls/10147","html_url":"https://github.com/elastic/elasticsearch/pull/10147","diff_url":"https://github.com/elastic/elasticsearch/pull/10147.diff","patch_url":"https://github.com/elastic/elasticsearch/pull/10147.patch"},"body":"For Fuzzy Queries:\r\n\r\n```\r\nGET /imdb/movies/_validate/query?explain=true\r\n{\r\n  \"query\": {\r\n    \"fuzzy\": {\r\n      \"actors\": \"kyle\"\r\n    }\r\n  }\r\n}\r\n\r\nResponse:\r\n\r\n{\r\n   ...\r\n   \"explanations\": [\r\n      {\r\n         \"index\": \"imdb\",\r\n         \"valid\": true,\r\n         \"explanation\": \"filtered(actors:eyle^0.75 actors:kale^0.75 actors:kayle^0.75 ... )->cache(_type:movies)\"\r\n      }\r\n   ]\r\n}\r\n```\r\n\r\nFor More Like This:\r\n\r\n```\r\nGET /imdb/movies/_validate/query?explain=true\r\n{\r\n  \"query\": {\r\n    \"more_like_this\": {\r\n      \"like\": {\r\n        \"_id\": \"88247\"\r\n      }\r\n    }\r\n  }\r\n}\r\n\r\nResponse:\r\n\r\n{\r\n   ...\r\n   \"explanations\": [\r\n      {\r\n         \"index\": \"imdb\",\r\n         \"valid\": true,\r\n         \"explanation\": \"filtered((((title:terminator^3.71334 plot:kyle^1.0604408 plot:cyborg^1.0863208 ... )~2)) -ConstantScore(_uid:movies#88247))->cache(_type:movies)\"\r\n      }\r\n   ]\r\n}\r\n```\r\n\r\nRelates to #1412"},"comment":{"url":"https://api.github.com/repos/elastic/elasticsearch/issues/comments/84113220","html_url":"https://github.com/elastic/elasticsearch/pull/10147#issuecomment-84113220","issue_url":"https://api.github.com/repos/elastic/elasticsearch/issues/10147","id":84113220,"user":{"login":"s1monw","id":973334,"avatar_url":"https://avatars.githubusercontent.com/u/973334?v=3","gravatar_id":"","url":"https://api.github.com/users/s1monw","html_url":"https://github.com/s1monw","followers_url":"https://api.github.com/users/s1monw/followers","following_url":"https://api.github.com/users/s1monw/following{/other_user}","gists_url":"https://api.github.com/users/s1monw/gists{/gist_id}","starred_url":"https://api.github.com/users/s1monw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/s1monw/subscriptions","organizations_url":"https://api.github.com/users/s1monw/orgs","repos_url":"https://api.github.com/users/s1monw/repos","events_url":"https://api.github.com/users/s1monw/events{/privacy}","received_events_url":"https://api.github.com/users/s1monw/received_events","type":"User","site_admin":false},"created_at":"2015-03-20T19:42:51Z","updated_at":"2015-03-20T19:42:51Z","body":"just add `rewrite: true|false`?"}}