Rebuild API

1.6 Rebuild

1.6.1 Rebuild 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. }

Note:

You can get the asynchronous job status by GET http://localhost:8080/graphs/hugegraph/tasks/${task_id} (the task_id here should be 1). See More AsyncJob RESTfull API

1.6.2 Rebulid all Indexs of 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. }

Note:

You can get the asynchronous job status by GET http://localhost:8080/graphs/hugegraph/tasks/${task_id} (the task_id here should be 2). See More AsyncJob RESTfull API

1.6.3 Rebulid all Indexs of 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. }

Note:

You can get the asynchronous job status by GET http://localhost:8080/graphs/hugegraph/tasks/${task_id} (the task_id here should be 3). See More AsyncJob RESTfull API

Last modified May 9, 2022: pull-130 fix the reviewed problems (617b0dc0)