Helix Core is now P4. Product user interfaces will be updated soon. Learn more >>

P4 Search Documentation | 2025.3

# Quick reference to index the P4 Server

This chapter is a quick reference for performing an initial index of your P4 Server. For a small site, you may want to index everything, but for a larger site, you might only want to index a project.

## Small site deployment

To index all of the changes in your depot, use the following curl request:

curl -H X-Auth-Token: <X-AUTH-TOKEN> -X POST http://localhost:1601/api/v1.2/index/changes

- For more information on the fields that can be used to limit your request, see Index endpoints in Access the Swagger REST API .
- For information on small site deployments, see Small site deployment.

## Medium site deployment

To index all changes in separate parts of your depot, run the curl request only on the parts of the depot you need to.

For example if you have project A, project B, and project C but you only want to index project A and project B:

Project A:

curl -H X-Auth-Token: <X-AUTH-TOKEN> -X POST -d '{"depotFile":"//projA/..."}' http://projA.perforce.com:1601/api/v1.2/index/changes

Project B

curl -H X-Auth-Token: <X-AUTH-TOKEN> -X POST -d '{"depotFile":"//projB/..."}' http://projB.perforce.com:1601/api/v1.2/index/changes

- For more information on the fields that can be used to limit your request, see Index endpoints in Access the Swagger REST API .
- For information on medium site deployments, see Medium site deployment.

## Related topics

- API endpoints
- Data model

Your search for returned results