solr dataimport

full-import : "完全导入"这个操作可以通过访问http://10.108.109.196:8080/solr/core0/dataimport?command=full-import完成。

这个操作,将会新起一个线程。response中的attribute属性将会显示busy。

这个操作执行的时间取决于数据集的大小。

当这个操作运行完了以后,它将在conf/dataimport.properties这个文件中记录下这个操作的开始时间

当“增量导入”被执行时,stored timestamp这个时间戳将会被用到

solr的查询在“完全导入”时,不是阻塞的

它还有下面一些参数:

clean : (default 'true'). 决定在建立索引之前,删除以前的索引。http://10.108.109.196:8080/solr/core0/dataimport?command=full-import&clean=false

commit : (default 'true'). 决定这个操作之后是否要commit

optimize : (default 'true'). 决定这个操作之后是否要优化。

debug : (default false). 工作在debug模式下。详情请看 the interactive development mode (see here )

delta-import : 当遇到一些增量的输入,或者发生一些变化时使用http://10.108.109.196:8080/solr/core0/dataimport?command=delta- import . 它同样支持  clean, commit, optimize and debug 这几个参数.

status : 想要知道命令执行的状态 , 访问 URL http://:/solr/dataimport .它给出了关于文档创建、删除,查询、结果获取等等的详细状况。

reload-config : 如果data-config.xml已经改变,你不希望重启solr,而要重新加载配置时,运行一下的命令http://10.108.109.196:8080/solr/core0/dataimport?command=reload-config

abort : 你可以通过访问http://10.108.109.196:8080/solr/core0/dataimport?command=abort 来终止一个在运行的操作

转载于:https://www.cnblogs.com/llinzuxin/archive/2012/04/16/2950555.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值