I am following the tutorial documentation at http://lucene.apache.org/solr/quickstart.html <http://lucene.apache.org/solr/quickstart.html> . I successfully indexed the "docs" folder using the SimplePostTool (Windows, using the Java method).
When I attempt the second example, of loading the *.xml files, I receive an error back. I tried just one of the XMLs and receive the same error. Here is the output: C:\solr-5.5.0>java -Dauto -Dc=gettingstarted -jar example/exampledocs/post.jar example/exampledocs/gb18030-example.xml SimplePostTool version 5.0.0 Posting files to [base] url http://localhost:8983/solr/gettingstarted/update... Entering auto mode. File endings considered are xml,json,jsonl,csv,pdf,doc,docx,ppt,pptx,xls,xlsx,odt,odp,ods,ott,otp,ots,rtf,htm,html,txt,log POSTing file gb18030-example.xml (application/xml) to [base] SimplePostTool: WARNING: Solr returned an error #400 (Bad Request) for url: http://localhost:8983/solr/gettingstarted/update SimplePostTool: WARNING: Response: <?xml version="1.0" encoding="UTF-8"?> <response> <lst name="responseHeader"><int name="status">400</int><int name="QTime">8</int></lst><lst name="error"><lst name="metadata"><str name="error-class">org.apache.solr.common.SolrException</str><str name="root-error-class">java.lang.NumberFormatException</str><str name="error-class">org.apache.solr.common.SolrException</str><str name="root-error-class">org.apache.solr.common.SolrException</str></lst><str name="msg">Bad Request request: http://10.0.1.36:8983/solr/gettingstarted_shard1_replica2/update?update.chain=add-unknown-fields-to-the-schema&update.distrib=TOLEADER&distrib.from=http%3A%2F%2F10.0.1.36%3A8983%2Fsolr%2Fgettingstarted_shard2_replica2%2F&wt=javabin&version=2</str><int name="code">400</int></lst> </response> SimplePostTool: WARNING: IOException while reading response: java.io.IOException: Server returned HTTP response code: 400 for URL: http://localhost:8983/solr/gettingstarted/update 1 files indexed. COMMITting Solr index changes to http://localhost:8983/solr/gettingstarted/update... Time spent: 0:00:00.093 I haven't seen any online posts related to the QuickStart documentation so I am not sure where to turn for assistance. Anyone have any suggestions? -- View this message in context: http://lucene.472066.n3.nabble.com/Tutorial-example-loading-of-exampledocs-for-xml-fails-due-to-bad-request-tp4267878.html Sent from the Solr - User mailing list archive at Nabble.com.