{"comment":{"created_at":"2011-10-12T15:29:41Z","body":"this is intented for e.g. query_string query. use a text query then this shouldn't be a problem.","updated_at":"2011-10-12T15:29:41Z","url":"https://api.github.com/repos/elasticsearch/elasticsearch/issues/comments/2380528","id":2380528,"user":{"avatar_url":"https://secure.gravatar.com/avatar/206690a26526f07467ecfd6662f8b152?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/karussell","id":129644,"login":"karussell"}},"action":"created","issue":{"number":1387,"created_at":"2011-10-12T12:36:28Z","pull_request":{"diff_url":null,"patch_url":null,"html_url":null},"body":"When sending a query with an unclosed double quote, I get an error with a stack. Here's my log.\r\n\r\nCaused by: org.apache.lucene.queryParser.ParseException: Cannot parse '\"test': Lexical error at line 1, column 6.  Encountered: <EOF> after : \"\\\"test\"\r\n\tat org.apache.lucene.queryParser.QueryParser.parse(QueryParser.java:216)\r\n\tat org.elasticsearch.index.query.QueryStringQueryParser.parse(QueryStringQueryParser.java:184)\r\n\t... 38 more\r\nCaused by: org.apache.lucene.queryParser.TokenMgrError: Lexical error at line 1, column 6.  Encountered: <EOF> after : \"\\\"test\"\r\n\tat org.apache.lucene.queryParser.QueryParserTokenManager.getNextToken(QueryParserTokenManager.java:1229)\r\n\tat org.apache.lucene.queryParser.QueryParser.jj_ntk(QueryParser.java:1748)\r\n\tat org.apache.lucene.queryParser.QueryParser.Modifiers(QueryParser.java:1192)\r\n\tat org.apache.lucene.queryParser.QueryParser.Query(QueryParser.java:1236)\r\n\tat org.apache.lucene.queryParser.QueryParser.TopLevelQuery(QueryParser.java:1226)\r\n\tat org.apache.lucene.queryParser.QueryParser.parse(QueryParser.java:206)\r\n\t... 39 more\r\n\r\n","comments":1,"title":"Unclosed double quote causes error","updated_at":"2011-10-12T15:29:41Z","url":"https://api.github.com/repos/elasticsearch/elasticsearch/issues/1387","id":1886891,"assignee":null,"milestone":null,"closed_at":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/700f9a3b883e6a04d018f48290b1a3fd?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/fdv","id":9949,"login":"fdv"},"html_url":"https://github.com/elasticsearch/elasticsearch/issues/1387","labels":[],"state":"open"},"legacy":{"issue_id":1886891,"comment_id":2380528}}