The most common way to index is usually by study. This operation will index all analyses in the specific study provided.
To index a study with cURL, from your command line, execute the following:
curl -X POST \http://localhost:11235/index/repository/`<repositoryCode>`/study/`<studyId>` \-H 'Content-Type: application/json' \-H 'cache-control: no-cache' \
Where:
repositoryCode
is the code representing the Song repository that the study belongs tostudyId
is the ID of the study you want to indexTo index a study using the Swagger UI:
Go to http://localhost:11235/maestro/api-docs
Under management-controller, click the POST /index/repository/{repositoryCode}/study/{studyId}
endpoint.
Click Try it out.
Enter your studyId
, and repositoryCode
.
Click Execute. For example:
If successful the command line or Swagger will indicate the study has been indexed:
[{"indexName": "file_centric_1","failureData": {"failingIds": {}},"successful": true}]