Can search history be seen by Apple ID?
It is possible to see search history. 

If Safari for iCloud is enabled all enabled devices will be able to see your search history when going into the tabs screen to see what tanks are open. NOTE: This is only recent history. I doubt that 4 years back you will be able to view it.

If you want to turn off search history go to Settings -> [your name] -> iCloud and turn Safari off.