Election in which voters decide which of the candidates within a political party will represent the party in the general election