If you are talking about the rebuilding of index for search functionality to be optimal, i would say yes and it has to be done manually . Automating the indexing would be a complex solution if your requirement is "moving of spaces to another" through program. In this case , you can have a scheduled job triggered for rebulding index at regular interval . Please note that this can affect performance if done at frequent intervals.
Thank you so much