[ https://issues.apache.org/jira/browse/SOLR-6706?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14198529#comment-14198529 ]
ASF subversion and git services commented on SOLR-6706: ------------------------------------------------------- Commit 1636900 from [~noble.paul] in branch 'dev/trunk' [ https://svn.apache.org/r1636900 ] SOLR-6706 > /update/json/docs throws RuntimeException if a nested structure contains a > non-leaf float field > ----------------------------------------------------------------------------------------------- > > Key: SOLR-6706 > URL: https://issues.apache.org/jira/browse/SOLR-6706 > Project: Solr > Issue Type: Bug > Components: update > Affects Versions: 4.10.2, 5.0, Trunk > Reporter: Shalin Shekhar Mangar > Assignee: Noble Paul > Fix For: 5.0, Trunk > > Attachments: SOLR-6706.patch > > > The following JSON throws an exception: > {code} > { > "a_string" : "abc", > "a_num" : 2.0, > "a" : { > "b" : [ > {"id":"1", "title" : "test1"}, > {"id":"2", "title" : "test2"} > ] > } > } > {code} > {code} > curl > 'http://localhost:8983/solr/collection1/update/json/docs?split=/a/b&f=id:/a/b/id&f=title_s:/a/b/title&indent=on' > -H 'Content-type:application/json' -d @test2.json > { > "responseHeader":{ > "status":500, > "QTime":0}, > "error":{ > "msg":"unexpected token 3", > "trace":"java.lang.RuntimeException: unexpected token 3\n\tat > org.apache.solr.common.util.JsonRecordReader$Node.handleObjectStart(JsonRecordReader.java:400)\n\tat > > org.apache.solr.common.util.JsonRecordReader$Node.parse(JsonRecordReader.java:281)\n\tat > > org.apache.solr.common.util.JsonRecordReader$Node.access$200(JsonRecordReader.java:152)\n\tat > > org.apache.solr.common.util.JsonRecordReader.streamRecords(JsonRecordReader.java:136)\n\tat > > org.apache.solr.handler.loader.JsonLoader$SingleThreadedJsonLoader.handleSplitMode(JsonLoader.java:200)\n\tat > > org.apache.solr.handler.loader.JsonLoader$SingleThreadedJsonLoader.processUpdate(JsonLoader.java:120)\n\tat > > org.apache.solr.handler.loader.JsonLoader$SingleThreadedJsonLoader.load(JsonLoader.java:106)\n\tat > org.apache.solr.handler.loader.JsonLoader.load(JsonLoader.java:68)\n\tat > org.apache.solr.handler.UpdateRequestHandler$1.load(UpdateRequestHandler.java:99)\n\tat > > org.apache.solr.handler.ContentStreamHandlerBase.handleRequestBody(ContentStreamHandlerBase.java:74)\n\tat > > org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:135)\n\tat > org.apache.solr.core.SolrCore.execute(SolrCore.java:1967)\n\tat > org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:777)\n\tat > > org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:418)\n\tat > > org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:207)\n\tat > > org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1419)\n\tat > > org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:455)\n\tat > > org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)\n\tat > > org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557)\n\tat > > org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)\n\tat > > org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1075)\n\tat > > org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:384)\n\tat > > org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)\n\tat > > org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1009)\n\tat > > org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)\n\tat > > org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:255)\n\tat > > org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154)\n\tat > > org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)\n\tat > org.eclipse.jetty.server.Server.handle(Server.java:368)\n\tat > org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:489)\n\tat > > org.eclipse.jetty.server.BlockingHttpConnection.handleRequest(BlockingHttpConnection.java:53)\n\tat > > org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:953)\n\tat > > org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:1014)\n\tat > org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:861)\n\tat > org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240)\n\tat > org.eclipse.jetty.server.BlockingHttpConnection.handle(BlockingHttpConnection.java:72)\n\tat > > org.eclipse.jetty.server.bio.SocketConnector$ConnectorEndPoint.run(SocketConnector.java:264)\n\tat > > org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)\n\tat > > org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)\n\tat > java.lang.Thread.run(Thread.java:745)\n", > "code":500}} > {code} > If I change a_num to an integer or remove it entirely then the document is > indexed successfully. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org