solr重建部分索引_【记录】删除重建Solr的core并重新导入数据建立索引

折腾:期间,虽然可以跑起来solr的server和client了,但是搜不到要的结果-》感觉本地导入数据有问题,所以后续solr搜索返回不到我们要的结果:input: say hifailed to find an answerinput:bye所以再去想办法,重写导入数据才行:所以重复之前的步骤:删除之前的qa➜solr git:(master) ✗ solr delete -helpUsa...
摘要由CSDN通过智能技术生成

折腾:

期间,虽然可以跑起来solr的server和client了,但是搜不到要的结果

-》感觉本地导入数据有问题,所以后续solr搜索返回不到我们要的结果:

input: say hi

failed to find an answer

input:bye

所以再去想办法,重写导入数据才行:

所以重复之前的步骤:删除之前的qa

➜  solr git:(master) ✗ solr delete -help

Usage: solr delete [-c name] [-deleteConfig true|false] [-p port] [-V]

Deletes a core or collection depending on whether Solr is running in standalone (core) or SolrCloud

mode (collection). If you’re deleting a collection in SolrCloud mode, the default behavior is to also

delete the configuration directory from Zookeeper so long as it is not being used by another collection.

You can override this behavior by passing -deleteConfig false when running this command.

-c                Name of the core / collection to delete

-deleteConfig Delete the configuration directory from Zookeeper; default is true

-p                Port of a local Solr instance where you want to delete the core/collection

If not specified, the script will search the local system for a running

Solr instance and will use the port of the first server it finds.

-V                      Enables more verbose output.

➜  solr git:(master) ✗ solr delete -c qa

Deleting core ‘qa’ using command:

➜  solr git:(master) ✗ tree qa

qa [error opening dir]

0 directories, 0 files

➜  solr git:(master) ✗ ll

total 24

-rw-r–r–  1 crifan  admin   2.9K  1 10  2018 README.txt

drwxr-xr-x  4 crifan  admin   128B  1 10  2018 configsets

drwx——@ 5 crifan  admin   160B  8 16 17:15 qa_toDelete

-rw-r–r–  1 crifan  admin   2.1K  1 10  2018 solr.xml

-rw-r–r–  1 crifan  admin   975B  1 10  2018 zoo.cfg

再去重新创建

这次换用web页面中去创建(core,而不是collection

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值