1. A computer-implemented method comprising: receiving a search query including a query term; obtaining a synonym that a synonym rule identifies as a substitute for the query term; evaluating the synonym and the query term using one or more predetermined criteria; and based on evaluating the synonym and the query term using the one or more predetermined criteria, designating the synonym as a restricted-locality synonym, wherein an occurrence, in a document that is identified as responsive to a search query, of a synonym that is designated as a restricted-locality synonym is scored according to a first scoring model, and wherein an occurrence, in a document that is identified as responsive to a search query, of a synonym that is not designated as a restricted-locality synonym is scored according to a second scoring model that is different than the first scoring model.
1. A computer-implemented method comprising: receiving a search query including a query term; obtaining a synonym that a synonym rule identifies as a substitute for the query term; evaluating the synonym and the query term using one or more predetermined criteria; and based on evaluating the synonym and the query term using the one or more predetermined criteria, designating the synonym as a restricted-locality synonym, wherein an occurrence, in a document that is identified as responsive to a search query, of a synonym that is designated as a restricted-locality synonym is scored according to a first scoring model, and wherein an occurrence, in a document that is identified as responsive to a search query, of a synonym that is not designated as a restricted-locality synonym is scored according to a second scoring model that is different than the first scoring model. 2. The method of claim 1 , wherein the first scoring model specifies that a contribution, to a document score, of occurrences of the restricted-locality synonym in the document depends on whether one or more other terms co-occur with the restricted-locality synonym in the document.