My understanding of this is the Google approach is to have all builds in the cloud using Forge i.e. infrastructure that lets you cloud builds.
This means you can do hermetic builds, and thousands of other engineers can reuse the build artifacts you produce.
And in the particular context of tools such as code searching, your build artifacts update the code searching index pretty quickly post committing a change.