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.
3. The system of claim 1 , wherein rewriting the at least one optional search operator in the initial search query using the at least one required search operator and the at least one exclusion search operator comprises replacing at least one of the at least one optional search operator from the initial search query with one of the at least one exclusion search operator in the rewritten search query.