I add doc by running post.jar with xml files but sometimes get error #400(Bad 
Request). At first, I doubt the xml files has problem but after I stop nodes 
and restart them. I add same doc again and it's successful. According post.jar 
output below, though NMLBOym_a_UN2004_07_20160511_1018.xml  got error #400 but 
at last it commit the index change. However, it doesn't write the index 
successfully (I've query that id and not found). What could be the possible 
cause? 

The output of post.jar is shown below:
---------------------------------------------------------------------------------------------------------------------------------------------
SimplePostTool version 5.0.0
Posting files to [base] url http://localhost:8983/solr/cugna/update using 
content-type application/xml...
POSTing file NMLBOym_a_UN2004_05_20160511_1018.xml to [base]
1 files indexed.
COMMITting Solr index changes to http://localhost:8983/solr/cugna/update...
Time spent: 0:00:50.017
SimplePostTool version 5.0.0
Posting files to [base] url http://localhost:8983/solr/cugna/update using 
content-type application/xml...
POSTing file NMLBOym_a_UN2004_06_20160511_1018.xml to [base]
1 files indexed.
COMMITting Solr index changes to http://localhost:8983/solr/cugna/update...
Time spent: 0:00:48.518
SimplePostTool version 5.0.0
Posting files to [base] url http://localhost:8983/solr/cugna/update using 
content-type application/xml...
POSTing file NMLBOym_a_UN2004_07_20160511_1018.xml to [base]
SimplePostTool: WARNING: Solr returned an error #400 (Bad Request) for url: 
http://localhost:8983/solr/cugna/update
SimplePostTool: WARNING: Response: <?xml version="1.0" encoding="UTF-8"?>
<response>
<lst name="responseHeader"><int name="status">400</int><int 
name="QTime">110614</int></lst><lst name="error"><str name="msg">
Exception writing document id un_2563325 to the index; possible analysis 
error.</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/cugna/update
1 files indexed.
COMMITting Solr index changes to http://localhost:8983/solr/cugna/update...
Time spent: 0:01:51.881
---------------------------------------------------------------------------------------------------------------------------------------------

scott.chu,scott....@udngroup.com
2016/5/18 (週三)

Reply via email to