1. A method of modifying a search query, performed by a server device, the method comprising: determining, by the server device, one or more alternative terms for one or more terms in the search query; obtaining, by the server device, search results based on the search query and based on an indexed corpus of documents, each search result identifying one or more documents in the indexed corpus of documents; defining, by the server device, a query context as a plurality of the documents identified by the search results; comparing, by the server device, the query context to the alternative terms to generate one or more valid ones of the alternative terms; and incorporating, by the server device, one or more of the valid ones of the alternative terms into the search query to obtain a modified search query.