我如何知道 Solr 集合更新命令是否真正起作用?我只做了一些小改动(为几个字段设置了 omitTermFreqAndPositions)。我执行的命令是
curl "http://localhost:8985/solr/admin/collections?action=RELOAD&name=collection1"
我收到回复了
{
"responseHeader":{
"status":0,
"QTime":1669},
"success":{
"***:*_solr":{
"responseHeader":{
"status":0,
"QTime":1597}}}}
Solr 日志文件有这样的行
Invoked Collection Action :reload with params name=collection1&action=RELOAD&wt=json&_=1553785328234 and sendToOCPQueue=true
后跟类似
的条目o.a.s.c.OverseerTaskQueue Response ZK path: /overseer/collection-queue-work/qnr-0000000018 doesn't exist. Requestor may have disconnected from ZooKeeper
我感觉作业没有成功完成。
最佳答案
选择带有 id 的异步请求,然后查询状态。如果 123456 是你要分配的 id,添加
&async=123456
作为附加查询参数。提交命令后,像这样查询
collections?action=REQUESTSTATUS&requestid=123456
只给出了查询参数。以适当的路径作为前缀。
关于solr - 如何查找 Solr 集合更新状态,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55410971/