Rebuild API

1.6 Rebuild

1.6.1 重建IndexLabel

Method & Url
  1. PUT http://localhost:8080/graphs/hugegraph/jobs/rebuild/indexlabels/personByCity
Response Status
  1. 202
Response Body
  1. {
  2. "task_id": 1
  3. }

注:

可以通过GET http://localhost:8080/graphs/hugegraph/tasks/1(其中”1”是task_id)来查询异步任务的执行状态,更多异步任务RESTful API

1.6.2 VertexLabel对应的全部索引重建

Method & Url
  1. PUT http://localhost:8080/graphs/hugegraph/jobs/rebuild/vertexlabels/person
Response Status
  1. 202
Response Body
  1. {
  2. "task_id": 2
  3. }

注:

可以通过GET http://localhost:8080/graphs/hugegraph/tasks/2(其中”2”是task_id)来查询异步任务的执行状态,更多异步任务RESTful API

1.6.3 EdgeLabel对应的全部索引重建

Method & Url
  1. PUT http://localhost:8080/graphs/hugegraph/jobs/rebuild/edgelabels/created
Response Status
  1. 202
Response Body
  1. {
  2. "task_id": 3
  3. }

注:

可以通过GET http://localhost:8080/graphs/hugegraph/tasks/3(其中”3”是task_id)来查询异步任务的执行状态,更多异步任务RESTful API

Last modified April 17, 2022: rebuild doc (ef365444)