This is one of just two times (the other being the extremely disputed and very narrow election of 1876) that a losing Democratic candidate carried Indiana, and the only time that a Democrat who lost the national popular vote carried the state.
Results
1848 United States presidential election in Indiana[1]