The stock market posted solid gains on Friday, finishing the week on a positive note as major market benchmarks reached unprecedented heights. Market participants largely focused on the success of the U.S. economy, with the latest reading of consumer sentiment having hit levels unseen since the boom of the mid-2000s. Prospects for a favorable earnings season also lifted confidence among investors, and good news from individual stocks played a role in sending the overall market higher.