When confluence has a large number of attachments, indexing these attachments will take some time.
The quickest path to getting confluence to a usable state (search up and running and the lucene smart list manager) is to index the confluence content before any attachments.