In some embodiments, techniques for searching comprise providing receiving a request for a local search, determining a current location associated with a document currently being viewed, determining a search restriction specification associated with the current location associated with the document currently being viewed, wherein the search restriction specification relates to a specification of a set of pages to be searched, obtaining local search results by performing a search, wherein the local search results are limited to members of the set of pages to be searched in accordance with the search restriction specification, and presenting the local search results.