Restrict file indexing
To restrict P4 Search from indexing a specific depot, you must set the P4 Server protections for that depot.
For example, if the extensions depot directory is //.extensions, set the P4 Server protections for //.extensions to:
read user * p4index_user -//.extensions/...
This prevents P4 Search from indexing the extensions depot directory.