It's possible to index an entire Song repository at once. This operation will index all analyses in all studies within the specified repository.
To index a repository with cURL, from your command line. execute the following:
curl -X POST \http://localhost:11235/index/repository/`<repositoryCode>` \-H 'Content-Type: application/json' \-H 'cache-control: no-cache'
Where repositoryCode
is the code of the Song repository you want to index.
To index a repository using the Swagger UI:
Go to http://localhost:11235/maestro/api-docs
Under management-controller, click the POST /index/repository/{repositoryCode}
endpoint.
Click Try it out.
Enter the repositoryCode
of the Song repository you want to index.
Click Execute. For example:
If successful the command line or Swagger will indicate the repository has been indexed:
[{"indexName": "file_centric_1","failureData": {"failingIds": {}},"successful": true}]