{"action":"created","issue":{"url":"https://api.github.com/repos/zombodb/zombodb/issues/306","repository_url":"https://api.github.com/repos/zombodb/zombodb","labels_url":"https://api.github.com/repos/zombodb/zombodb/issues/306/labels{/name}","comments_url":"https://api.github.com/repos/zombodb/zombodb/issues/306/comments","events_url":"https://api.github.com/repos/zombodb/zombodb/issues/306/events","html_url":"https://github.com/zombodb/zombodb/issues/306","id":375564135,"node_id":"MDU6SXNzdWUzNzU1NjQxMzU=","number":306,"title":"Errors for raw JSON ES queries","user":{"login":"hpetru","id":1880766,"node_id":"MDQ6VXNlcjE4ODA3NjY=","avatar_url":"https://avatars0.githubusercontent.com/u/1880766?v=4","gravatar_id":"","url":"https://api.github.com/users/hpetru","html_url":"https://github.com/hpetru","followers_url":"https://api.github.com/users/hpetru/followers","following_url":"https://api.github.com/users/hpetru/following{/other_user}","gists_url":"https://api.github.com/users/hpetru/gists{/gist_id}","starred_url":"https://api.github.com/users/hpetru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hpetru/subscriptions","organizations_url":"https://api.github.com/users/hpetru/orgs","repos_url":"https://api.github.com/users/hpetru/repos","events_url":"https://api.github.com/users/hpetru/events{/privacy}","received_events_url":"https://api.github.com/users/hpetru/received_events","type":"User","site_admin":false},"labels":[{"id":237486354,"node_id":"MDU6TGFiZWwyMzc0ODYzNTQ=","url":"https://api.github.com/repos/zombodb/zombodb/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-30T15:55:22Z","updated_at":"2018-10-30T19:22:49Z","closed_at":null,"author_association":"NONE","body":"ZomboDB version: 5.6.4-1.0.4\r\nPostgres version: PostgreSQL 9.5.14\r\nElasticsearch version: 5.6.4\r\n\r\nProblem Description:\r\n```sql\r\ncreate table tmp_example (\r\n);\r\n\r\nCREATE INDEX idx_zdb_tmp_example\r\n\tON tmp_example\r\nUSING zombodb(\r\n\tzdb('tmp_example', tmp_example.ctid), zdb(tmp_example))\r\nWITH (url=default, shards=1, replicas=0);\r\n\r\nSELECT zdb_dump_query(\r\n\t'tmp_example', \r\n\t'({\"simple_query_string\":{\"query\":\"bla bla (113)\",\"fields\":[\"title\",\"content\"],\"default_operator\":\"and\"}})'\r\n)\r\n;\r\n```\r\n\r\n\r\nError Message (if any):\r\n\r\n```\r\n{\r\n  \"error\" : \"java.lang.RuntimeException: (({\\\"simple_query_string\\\":{\\\"query\\\":\\\"bla bla (113)\\\",\\\"fields\\\":[\\\"title\\\",\\\"content\\\"],\\\"default_operator\\\":\\\"and\\\"}}))\\n\\tat llc.zombodb.rest.search.ZomboDBTIDResponseAction.buildJsonQueryFromRequestContent(ZomboDBTIDResponseAction.java:208)\\n\\tat llc.zombodb.rest.admin.ZomboDBQueryAction.prepareRequest(ZomboDBQueryAction.java:53)\\n\\tat org.elasticsearch.rest.BaseRestHandler.handleRequest(BaseRestHandler.java:64)\\n\\tat org.elasticsearch.rest.RestController.dispatchRequest(RestController.java:262)\\n\\tat org.elasticsearch.rest.RestController.dispatchRequest(RestController.java:200)\\n\\tat org.elasticsearch.http.netty4.Netty4HttpServerTransport.dispatchRequest(Netty4HttpServerTransport.java:505)\\n\\tat org.elasticsearch.http.netty4.Netty4HttpRequestHandler.channelRead0(Netty4HttpRequestHandler.java:72)\\n\\tat io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105)\\n\\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)\\n\\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)\\n\\tat io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)\\n\\tat org.elasticsearch.http.netty4.pipelining.HttpPipeliningHandler.channelRead(HttpPipeliningHandler.java:68)\\n\\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)\\n\\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)\\n\\tat io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)\\n\\tat io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:102)\\n\\tat io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:111)\\n\\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)\\n\\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)\\n\\tat io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)\\n\\tat io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:102)\\n\\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)\\n\\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)\\n\\tat io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)\\n\\tat io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:102)\\n\\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)\\n\\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)\\n\\tat io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)\\n\\tat io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:310)\\n\\tat io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:284)\\n\\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)\\n\\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)\\n\\tat io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)\\n\\tat io.netty.channel.ChannelInboundHandlerAdapter.channelRead(ChannelInboundHandlerAdapter.java:86)\\n\\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)\\n\\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)\\n\\tat io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)\\n\\tat io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1334)\\n\\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)\\n\\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)\\n\\tat io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:926)\\n\\tat io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:134)\\n\\tat io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:644)\\n\\tat io.netty.channel.nio.NioEventLoop.processSelectedKeysPlain(NioEventLoop.java:544)\\n\\tat io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:498)\\n\\tat io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:458)\\n\\tat io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:858)\\n\\tat java.lang.Thread.run(Thread.java:745)\\nCaused by: llc.zombodb.query_parser.TokenMgrError: Lexical error at line 1, column 108.  Encountered: <EOF> after : \\\"\\\\\\\"}}))\\\"\\n\\tat llc.zombodb.query_parser.QueryParserTokenManager.getNextToken(QueryParserTokenManager.java:3658)\\n\\tat llc.zombodb.query_parser.QueryParser.jj_scan_token(QueryParser.java:3987)\\n\\tat llc.zombodb.query_parser.QueryParser.jj_3R_23(QueryParser.java:3405)\\n\\tat llc.zombodb.query_parser.QueryParser.jj_3_4(QueryParser.java:3509)\\n\\tat llc.zombodb.query_parser.QueryParser.jj_2_4(QueryParser.java:2683)\\n\\tat llc.zombodb.query_parser.QueryParser.AndExpression(QueryParser.java:1083)\\n\\tat llc.zombodb.query_parser.QueryParser.OrExpression(QueryParser.java:1017)\\n\\tat llc.zombodb.query_parser.QueryParser.Expression(QueryParser.java:962)\\n\\tat llc.zombodb.query_parser.QueryParser.UnaryExpression(QueryParser.java:1313)\\n\\tat llc.zombodb.query_parser.QueryParser.ProximityExpression(QueryParser.java:1206)\\n\\tat llc.zombodb.query_parser.QueryParser.WithExpression(QueryParser.java:1143)\\n\\tat llc.zombodb.query_parser.QueryParser.AndExpression(QueryParser.java:1080)\\n\\tat llc.zombodb.query_parser.QueryParser.OrExpression(QueryParser.java:1017)\\n\\tat llc.zombodb.query_parser.QueryParser.Expression(QueryParser.java:962)\\n\\tat llc.zombodb.query_parser.QueryParser.parse0(QueryParser.java:144)\\n\\tat llc.zombodb.query_parser.QueryParser.parse(QueryParser.java:70)\\n\\tat llc.zombodb.query_parser.rewriters.QueryRewriter.<init>(QueryRewriter.java:145)\\n\\tat llc.zombodb.query_parser.rewriters.ZomboDBQueryRewriter.<init>(ZomboDBQueryRewriter.java:38)\\n\\tat llc.zombodb.query_parser.rewriters.QueryRewriter$Factory.create(QueryRewriter.java:62)\\n\\tat llc.zombodb.rest.search.ZomboDBTIDResponseAction.buildJsonQueryFromRequestContent(ZomboDBTIDResponseAction.java:202)\\n\\t... 47 more\\n\"\r\n}\r\n\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/zombodb/zombodb/issues/comments/434435762","html_url":"https://github.com/zombodb/zombodb/issues/306#issuecomment-434435762","issue_url":"https://api.github.com/repos/zombodb/zombodb/issues/306","id":434435762,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNDQzNTc2Mg==","user":{"login":"eeeebbbbrrrr","id":5117238,"node_id":"MDQ6VXNlcjUxMTcyMzg=","avatar_url":"https://avatars3.githubusercontent.com/u/5117238?v=4","gravatar_id":"","url":"https://api.github.com/users/eeeebbbbrrrr","html_url":"https://github.com/eeeebbbbrrrr","followers_url":"https://api.github.com/users/eeeebbbbrrrr/followers","following_url":"https://api.github.com/users/eeeebbbbrrrr/following{/other_user}","gists_url":"https://api.github.com/users/eeeebbbbrrrr/gists{/gist_id}","starred_url":"https://api.github.com/users/eeeebbbbrrrr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eeeebbbbrrrr/subscriptions","organizations_url":"https://api.github.com/users/eeeebbbbrrrr/orgs","repos_url":"https://api.github.com/users/eeeebbbbrrrr/repos","events_url":"https://api.github.com/users/eeeebbbbrrrr/events{/privacy}","received_events_url":"https://api.github.com/users/eeeebbbbrrrr/received_events","type":"User","site_admin":false},"created_at":"2018-10-30T19:22:49Z","updated_at":"2018-10-30T19:22:49Z","author_association":"COLLABORATOR","body":"thanks for the report.  I'll look into it next week. \r\n\r\nIn the mean time though, if you remove the parenthesis around `(113)` then it seems to parse correctly.  Maybe that'll get you going until I have a chance to fix and release."}}
{"actor":{"display_login":"eeeebbbbrrrr"}}