0

可以使用吗?

indexeradmin rdocs list-of-ids.txt

删除所有集合中的所有文档。

我运行了命令,但发现它没有删除文档,从它说要指定集合名称的文档中,我可以删除每个集合的文档,但只是想知道是否可以从不同集合中获得混合 internal_id 的列表和让 indexeradmin 将它们全部删除。例如一个文件包含:

  • 0034953453453453_collection1
  • 4345345345345334_collection2

将删除 collection1 和 2 中的文档。

4

1 回答 1

0

For each collection do this:

indexerinfo -a reportcontents collection-name > /tmp/list-of-ids.txt
indexeradmin --column=1 --row=1 rdocs /tmp/list-of-ids.txt collection-name session-id

Execute the second line for all columns/rows of the cluster. And you can choose any random integer for the session-id.

于 2015-01-30T05:32:17.600 回答