The same control menu allows you to essentially turn off indexing while on battery to save power. A small tally in the upper right-hand corner will tick up and down as Windows finds new files, then indexes them. Windows is pretty intelligent about how and when it indexes, so the process will take a while.
The search indexing controls within Windows 11.