traditional and current orthodox thought have mainly held that the messiah will be the anointed one , descended from his father through the davidic line of king david via solomon , who will gather the jews back into the land of israel , usher in an era of peace , build the third temple , have a male heir and re-institute the sanhedrin , among other things .