Since it’s the Spotlight’s job to go through basically every file on your iPhone to show you the relevant search, it will drain your iPhone battery to some degree. However, there is no need to worry about that since this is not used frequently compared to other power-hungry activities.