Deleting and rebuilding indexes

As well as incrementally building indexes as data is loaded, Insight hub provides services to delete and rebuild the indexes for one or more instances.

These take a message of the same form as the instance load, i.e.

[
  {
  "instance_uuid": "instanceUUID"
  }
]

This can contain multiple objects, each with an instance_uuid.

The delete index service is called using something like

curl -X POST -H "Content-Type: application/json" --data @instance.json "dhinstance/load/delete_index"

The build index service, which rebuilds the index, is called using something like

curl -X POST -H "Content-Type: application/json" --data @instance.json "dhinstance/load/build_index"

See Data loads for a definition of dhinstance.

Calls must be authenticated to a user who can do anything in the data hub.

The build index uses the same Document Index Script and Event Index Script used during initial indexing, but passing a different where clause to load all the data.