I use SMS Backup + [1] which saves all my text messages to my Google account allowing me to easily search and archive. It's followed me through android phones for many years, automagically installing as I sign-in for the first time on each 'new' device.