如何查找Solr集合的更新状态

4
如何知道Solr Collection更新命令是否有效?我只做了一些小的更改(为几个字段设置了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

我有一种感觉,这项工作没有成功完成。

1个回答

0
选择使用带有 ID 的异步请求并稍后查询状态是可行的。如果你想指定 ID 为 123456,请添加:
&async=123456    

作为一个额外的查询参数。一旦命令被提交,就像这样进行查询

collections?action=REQUESTSTATUS&requestid=123456   

只提供查询参数。请使用适当的路径前缀。


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接