阅读更多
solr数据导入,经过这几天的查资料,我觉得solr数据导入可以有三种方式:
1、编写数据xml文件,通过post.jar导入;
2、通过DIH导入;
3、利用solrj导入数据;
执行
E:\source\example>java -jar -Dc=arpenker -Dauto e:\source\example\exampledocs\po
st.jar e:\source\example\exampledocs\*
SimplePostTool version 5.0.0
Posting files to [base] url http://localhost:8983/solr/arpenker/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 books.csv (text/csv) to [base]
SimplePostTool: FATAL: Connection error (is Solr running at http://localhost:898
3/solr/arpenker/update ?): java.net.ConnectException: Connection refused: connec
t
E:\source\example>