折腾:
期间,虽然可以跑起来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