{"action":"created","issue":{"url":"https://api.github.com/repos/elastic/elasticsearch/issues/29344","repository_url":"https://api.github.com/repos/elastic/elasticsearch","labels_url":"https://api.github.com/repos/elastic/elasticsearch/issues/29344/labels{/name}","comments_url":"https://api.github.com/repos/elastic/elasticsearch/issues/29344/comments","events_url":"https://api.github.com/repos/elastic/elasticsearch/issues/29344/events","html_url":"https://github.com/elastic/elasticsearch/issues/29344","id":310728265,"number":29344,"title":"It would be nice if zero_terms_query was supported by the new match_phrase syntax","user":{"login":"JFogh","id":38031312,"avatar_url":"https://avatars2.githubusercontent.com/u/38031312?v=4","gravatar_id":"","url":"https://api.github.com/users/JFogh","html_url":"https://github.com/JFogh","followers_url":"https://api.github.com/users/JFogh/followers","following_url":"https://api.github.com/users/JFogh/following{/other_user}","gists_url":"https://api.github.com/users/JFogh/gists{/gist_id}","starred_url":"https://api.github.com/users/JFogh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JFogh/subscriptions","organizations_url":"https://api.github.com/users/JFogh/orgs","repos_url":"https://api.github.com/users/JFogh/repos","events_url":"https://api.github.com/users/JFogh/events{/privacy}","received_events_url":"https://api.github.com/users/JFogh/received_events","type":"User","site_admin":false},"labels":[{"id":146832564,"url":"https://api.github.com/repos/elastic/elasticsearch/labels/:Search/Search","name":":Search/Search","color":"0e8a16","default":false},{"id":23174,"url":"https://api.github.com/repos/elastic/elasticsearch/labels/%3Eenhancement","name":">enhancement","color":"4a4ea8","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-04-03T07:44:04Z","updated_at":"2018-04-03T09:23:44Z","closed_at":null,"author_association":"NONE","body":"<!--\r\n\r\n** Please read the guidelines below. **\r\n\r\nIssues that do not follow these guidelines are likely to be closed.\r\n\r\n1.  GitHub is reserved for bug reports and feature requests. The best place to\r\n    ask a general question is at the Elastic [forums](https://discuss.elastic.co).\r\n    GitHub is not the place for general questions.\r\n\r\n2.  Is this bug report or feature request for a supported OS? If not, it\r\n    is likely to be closed.  See https://www.elastic.co/support/matrix#show_os\r\n\r\n3.  Please fill out EITHER the feature request block or the bug report block\r\n    below, and delete the other block.\r\n\r\n-->\r\n\r\n<!-- Feature request -->\r\n\r\n**Describe the feature**:\r\nIn the new NEST version 6.x.x the \"type\" option on \"match\" query is obsolete.\r\nThus you now use \"match_phrase\" instead of match with type \"phrase\".\r\nWhen using the old \"match\" there was a \"zero_terms_query\" possibility supported.\r\nThis is not supported by the \"match_phrase\" query.\r\nThis makes it harder to rewrite queries using the old \"match\"-syntax to use the new \"match_phrase\",\r\nthus it would be nice to have the \"zero_terms_query\" possibility, especially for backwards compability.\r\n\r\n<!-- Bug report -->\r\n\r\n**Elasticsearch version** (`bin/elasticsearch --version`):\r\n\r\n**Plugins installed**: []\r\n\r\n**JVM version** (`java -version`):\r\n\r\n**OS version** (`uname -a` if on a Unix-like system):\r\n\r\n**Description of the problem including expected versus actual behavior**:\r\n\r\n**Steps to reproduce**:\r\n\r\nPlease include a *minimal* but *complete* recreation of the problem, including\r\n(e.g.) index creation, mappings, settings, query etc.  The easier you make for\r\nus to reproduce it, the more likely that somebody will take the time to look at it.\r\n\r\n 1.\r\n 2.\r\n 3.\r\n\r\n**Provide logs (if relevant)**:\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/elastic/elasticsearch/issues/comments/378186313","html_url":"https://github.com/elastic/elasticsearch/issues/29344#issuecomment-378186313","issue_url":"https://api.github.com/repos/elastic/elasticsearch/issues/29344","id":378186313,"user":{"login":"jimczi","id":15977469,"avatar_url":"https://avatars0.githubusercontent.com/u/15977469?v=4","gravatar_id":"","url":"https://api.github.com/users/jimczi","html_url":"https://github.com/jimczi","followers_url":"https://api.github.com/users/jimczi/followers","following_url":"https://api.github.com/users/jimczi/following{/other_user}","gists_url":"https://api.github.com/users/jimczi/gists{/gist_id}","starred_url":"https://api.github.com/users/jimczi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jimczi/subscriptions","organizations_url":"https://api.github.com/users/jimczi/orgs","repos_url":"https://api.github.com/users/jimczi/repos","events_url":"https://api.github.com/users/jimczi/events{/privacy}","received_events_url":"https://api.github.com/users/jimczi/received_events","type":"User","site_admin":false},"created_at":"2018-04-03T09:23:43Z","updated_at":"2018-04-03T09:23:43Z","author_association":"MEMBER","body":"Some options that were available on the `multi_match` and `match` queries are no longer available in the `match_phrase` query. You could use a `multi_match` query and set the `type` to `phrase` but I agree that it would be nice to re-enable the support for `zero_terms_query` option in a simple `match_phrase` query. Would you like to work on a pull request for this issue @JFogh ? Otherwise I'll mark the issue with an adoptme tag."}}
{"actor":{"display_login":"jimczi"}}