{"action":"created","issue":{"url":"https://api.github.com/repos/elastic/elasticsearch/issues/13680","labels_url":"https://api.github.com/repos/elastic/elasticsearch/issues/13680/labels{/name}","comments_url":"https://api.github.com/repos/elastic/elasticsearch/issues/13680/comments","events_url":"https://api.github.com/repos/elastic/elasticsearch/issues/13680/events","html_url":"https://github.com/elastic/elasticsearch/pull/13680","id":107542897,"number":13680,"title":"HEAD support for the _search/exists api","user":{"login":"nik9000","id":215970,"avatar_url":"https://avatars.githubusercontent.com/u/215970?v=3","gravatar_id":"","url":"https://api.github.com/users/nik9000","html_url":"https://github.com/nik9000","followers_url":"https://api.github.com/users/nik9000/followers","following_url":"https://api.github.com/users/nik9000/following{/other_user}","gists_url":"https://api.github.com/users/nik9000/gists{/gist_id}","starred_url":"https://api.github.com/users/nik9000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nik9000/subscriptions","organizations_url":"https://api.github.com/users/nik9000/orgs","repos_url":"https://api.github.com/users/nik9000/repos","events_url":"https://api.github.com/users/nik9000/events{/privacy}","received_events_url":"https://api.github.com/users/nik9000/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/elastic/elasticsearch/labels/:REST","name":":REST","color":"009800"},{"url":"https://api.github.com/repos/elastic/elasticsearch/labels/:Search","name":":Search","color":"009800"},{"url":"https://api.github.com/repos/elastic/elasticsearch/labels/enhancement","name":"enhancement","color":"4a4ea8"},{"url":"https://api.github.com/repos/elastic/elasticsearch/labels/v2.1.0","name":"v2.1.0","color":"dddddd"},{"url":"https://api.github.com/repos/elastic/elasticsearch/labels/v3.0.0","name":"v3.0.0","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-09-21T15:53:38Z","updated_at":"2015-09-21T16:43:32Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/elastic/elasticsearch/pulls/13680","html_url":"https://github.com/elastic/elasticsearch/pull/13680","diff_url":"https://github.com/elastic/elasticsearch/pull/13680.diff","patch_url":"https://github.com/elastic/elasticsearch/pull/13680.patch"},"body":"Registers the `_search/exists` api to receive HEAD requests. If it gets one\r\nthen it won't output the JSON response but will still do everything else.\r\n\r\nAdds magic to the rest tests to ignore `catch: missing` for HEAD requests.\r\nThis behavior is checked instead with `- is_false: anystring`. This setup\r\nmakes the rest tests for `search/_exists` work for HEAD requests.\r\n\r\nAlso forces the request body over the source URL parameter for all HEAD\r\nrequests.\r\n\r\nCloses #11204"},"comment":{"url":"https://api.github.com/repos/elastic/elasticsearch/issues/comments/142038384","html_url":"https://github.com/elastic/elasticsearch/pull/13680#issuecomment-142038384","issue_url":"https://api.github.com/repos/elastic/elasticsearch/issues/13680","id":142038384,"user":{"login":"nik9000","id":215970,"avatar_url":"https://avatars.githubusercontent.com/u/215970?v=3","gravatar_id":"","url":"https://api.github.com/users/nik9000","html_url":"https://github.com/nik9000","followers_url":"https://api.github.com/users/nik9000/followers","following_url":"https://api.github.com/users/nik9000/following{/other_user}","gists_url":"https://api.github.com/users/nik9000/gists{/gist_id}","starred_url":"https://api.github.com/users/nik9000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nik9000/subscriptions","organizations_url":"https://api.github.com/users/nik9000/orgs","repos_url":"https://api.github.com/users/nik9000/repos","events_url":"https://api.github.com/users/nik9000/events{/privacy}","received_events_url":"https://api.github.com/users/nik9000/received_events","type":"User","site_admin":false},"created_at":"2015-09-21T16:43:32Z","updated_at":"2015-09-21T16:43:32Z","body":"> I think 4 is the best option for now, if it doesn't work I'd just remove the is_true and is_false statements altogether - that way only the do commands will be checked which means the status code (one plain which means that the request must be asuccess (2XX) and the other one has catch: missing which means it asserts the status code to be 404, exactly as needed in both cases.\r\n\r\nEverywhere else HEAD requests get an implicit `ignore: missing`.... Lets just ignore this until #13682 is decided."}}