{"action":"closed","issue":{"url":"https://api.github.com/repos/elastic/elasticsearch/issues/12439","labels_url":"https://api.github.com/repos/elastic/elasticsearch/issues/12439/labels{/name}","comments_url":"https://api.github.com/repos/elastic/elasticsearch/issues/12439/comments","events_url":"https://api.github.com/repos/elastic/elasticsearch/issues/12439/events","html_url":"https://github.com/elastic/elasticsearch/issues/12439","id":97051352,"number":12439,"title":"NPE when querying `_all` field with no fields","user":{"login":"clintongormley","id":56599,"avatar_url":"https://avatars.githubusercontent.com/u/56599?v=3","gravatar_id":"","url":"https://api.github.com/users/clintongormley","html_url":"https://github.com/clintongormley","followers_url":"https://api.github.com/users/clintongormley/followers","following_url":"https://api.github.com/users/clintongormley/following{/other_user}","gists_url":"https://api.github.com/users/clintongormley/gists{/gist_id}","starred_url":"https://api.github.com/users/clintongormley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clintongormley/subscriptions","organizations_url":"https://api.github.com/users/clintongormley/orgs","repos_url":"https://api.github.com/users/clintongormley/repos","events_url":"https://api.github.com/users/clintongormley/events{/privacy}","received_events_url":"https://api.github.com/users/clintongormley/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/elastic/elasticsearch/labels/:Mapping","name":":Mapping","color":"009800"},{"url":"https://api.github.com/repos/elastic/elasticsearch/labels/adoptme","name":"adoptme","color":"207de5"},{"url":"https://api.github.com/repos/elastic/elasticsearch/labels/bug","name":"bug","color":"9e2c2c"},{"url":"https://api.github.com/repos/elastic/elasticsearch/labels/low%20hanging%20fruit","name":"low hanging fruit","color":"009800"},{"url":"https://api.github.com/repos/elastic/elasticsearch/labels/v2.0.0","name":"v2.0.0","color":"dddddd"}],"state":"closed","locked":false,"assignee":{"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},"milestone":null,"comments":0,"created_at":"2015-07-24T13:19:27Z","updated_at":"2015-07-28T14:21:00Z","closed_at":"2015-07-28T14:21:00Z","body":"\r\n    DELETE my_index\r\n\r\n    POST my_index/my_type/1\r\n    {}\r\n    \r\n    GET my_index/_search\r\n    {\r\n      \"query\": {\r\n        \"match\": {\r\n          \"_all\": \"foo\"\r\n        }\r\n      }\r\n    }\r\n\r\nReturns an NPE with the following stack trace:\r\n\r\n    Failed to execute [org.elasticsearch.action.search.SearchRequest@402fa749]\r\n    RemoteTransportException[[Havok][inet[/127.0.0.1:9300]][indices:data/read/search[phase/query]]]; nested: QueryPhaseExecutionException[Query Failed [Failed to execute main query]]; nested: ElasticsearchException; nested: NullPointerException;\r\n    Caused by: QueryPhaseExecutionException[Query Failed [Failed to execute main query]]; nested: ElasticsearchException; nested: NullPointerException;\r\n        at org.elasticsearch.search.query.QueryPhase.execute(QueryPhase.java:157)\r\n        at org.elasticsearch.search.SearchService.loadOrExecuteQueryPhase(SearchService.java:334)\r\n        at org.elasticsearch.search.SearchService.executeQueryPhase(SearchService.java:346)\r\n        at org.elasticsearch.search.action.SearchServiceTransportAction$SearchQueryTransportHandler.messageReceived(SearchServiceTransportAction.java:368)\r\n        at org.elasticsearch.search.action.SearchServiceTransportAction$SearchQueryTransportHandler.messageReceived(SearchServiceTransportAction.java:365)\r\n        at org.elasticsearch.transport.TransportService$4.doRun(TransportService.java:340)\r\n        at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37)\r\n        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)\r\n        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)\r\n        at java.lang.Thread.run(Thread.java:722)\r\n    Caused by: ElasticsearchException; nested: NullPointerException;\r\n        at org.elasticsearch.ExceptionsHelper.convertToElastic(ExceptionsHelper.java:57)\r\n        at org.elasticsearch.search.internal.ContextIndexSearcher.createNormalizedWeight(ContextIndexSearcher.java:133)\r\n        at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:485)\r\n        at org.elasticsearch.search.internal.ContextIndexSearcher.search(ContextIndexSearcher.java:173)\r\n        at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:694)\r\n        at org.apache.lucene.search.IndexSearcher.searchAfter(IndexSearcher.java:410)\r\n        at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:439)\r\n        at org.elasticsearch.search.query.QueryPhase.execute(QueryPhase.java:151)\r\n        ... 9 more\r\n    Caused by: java.lang.NullPointerException\r\n        at org.elasticsearch.common.lucene.all.AllTermQuery.rewrite(AllTermQuery.java:130)\r\n        at org.apache.lucene.search.IndexSearcher.rewrite(IndexSearcher.java:786)\r\n        at org.apache.lucene.search.IndexSearcher.createNormalizedWeight(IndexSearcher.java:833)\r\n        at org.elasticsearch.search.internal.ContextIndexSearcher.createNormalizedWeight(ContextIndexSearcher.java:130)\r\n        ... 15 more"}}