San*_*kar 5 indexing solr solrnet solrj
请按照以下步骤生成错误:
1. Configure the large amount of data (around 4 GB or more than 50 millions of records)
2. Give proper data-config.xml file for indexing the data from remote database server.
3. During indexing the data into solr from SQL SERVER 2010, at the half way unplug the
network cable and see the status in solr. e.g.
localhost:8083/solr/core1/dataimport?command=status
or
localhost:8083/solr/core1/dataimport
4. Pass few seconds then again plug back the cable.
5. You can clearly see that there is just only "Time Elapsed" parameter increase.
"Total Rows Fetched" & "Total Documents Processed" remains same for infinite time.
6. You can regenerate this for small data also.
7. Work around is you need to restart the solr. (But this is not good solution)
Run Code Online (Sandbox Code Playgroud)
注意:这是一个非常重要的问题,因为很多组织
仅仅因为这个数据库无限连接问题而没有使用这个有价值的产品。解决方案可以是:强行中止数据索引或提供强制中止索引的机制。希望你们知道 abort 命令也不起作用。
来自 Solr 文档 ( http://wiki.apache.org/solr/DataImportHandler )
通过点击 URL http://:/solr/dataimport?command=abort 中止正在进行的操作。
我刚刚检查了 DIH 的源代码并实现了 abort 命令