What to look for when choosing a life partner?

People try hard to match horoscopes (specially in India) for marriage. I saw many married couples get divorced even after matching horoscopes. I saw many married couples living unhappily together even after matching their horoscopes. Then what is the point of matching horoscopes while choosing a life partner? I don’t understand.
 
For marriage, people run after physical appearance. They try to match their height, their caste, degree, job title, and all other external identity or materialistic things.
 
But they forget to match the most important part, which actually may help them to live happily together.
 
They forget to match their thoughts and beliefs; dreams and desires; passions and interests; perceptions and values; their habits; and views about life and relationships.