1. A system comprising: at least one processor; and a non-transitory machine-readable medium embodying a set of instructions that, when executed by the at least one processor, cause the at least one processor to perform operations, the operations comprising: receiving an initial search query from a user, the initial search query comprising at least one search operator and at least one search term; generating a rewritten search query based on the initial search query, the generating the rewritten search query comprising rewriting at least one optional search operator in the initial search query using at least one required search operator and at least one exclusion search operator in response to a determination that the initial search query comprises the at least one optional search operator and does not comprise any required search operators; generating search results for the rewritten search query; and causing the search results to be presented to the user.