KayleeMuyu said:
"Hey, if you don’t mind me asking what is indexing?"
Indexing is pretty much what it sounds like... it's your phone going through all of its content (media, email, messages, etc.) and creating an index so that when you search, it can quickly find all of the content that matches your search. If it didn't do this, searching would take a lot longer.
This happens when you get a new phone, and periodically after iOS updates when something changes that requires it. It can be pretty processor intensive, which means that your battery will go down faster and your phone may get warmer when it happens. Depending on how much content you have, it can take several days for it to go through everything. Once it's done, your battery life should get better and the temperature should go down.
All of that said, as I mentioned in my previous post, what I'm experiencing with my 15 Pro seems a little extreme to me to be indexing alone. I've never had indexing cause this much heat on any of my previous iPhones.