Special query terms, Anchor text search – Google Search Appliance Protocol Reference User Manual
Page 23

Google Search Appliance: Search Protocol Reference
Request Format
23
If a document contains a number, with or without a decimal point, that has letters immediately before
or after it, the letters are treated as a separate word or words. For example, the string 802.11a is
indexed as two separate words, 802.11 and a.
Note: An underscore (or under bar) is not a query term separator. For example, if you search for
taino_the_parrot, the only valid search result is a document that contains the exact phrase,
taino_the_parrot. A search for taino or parrot does not return the taino_the_parrot result.
Special Query Terms
Google search supports the following special query terms. A user or search administrator can use these
terms to access additional search features.
Note: All query terms must be correctly URL-encoded in a search request (see “Appendix B: URL
Encoding” on page 107).
Anchor text search
Restricts the search to pages that contain all the search terms that are specified in the anchor text in
links to the page. For example, allinanchor:best museums sydney returns only pages in which the
anchor text in links to the pages contain the words “best,” “museums,” and “sydney.” The following
example shows an anchor tag:
allinanchor: evaluates the text between > and . allinanchor: evaluates only tags. It does not evaluate An anchor is a marker inserted at a specific section of a page. It lets the writer of the document create Do not include any other search operators with the allinanchor: operator. Sample usage: allinanchor:membership directory Minus sign or hyphen (-) Treated as part of a query term if there is no space preceding it. A hyphen Decimal point (.) Treated as a query term separator unless it is part of a number (for Ampersand (&) Treated as another character in the query term in which it is included. Character Description
links to these anchors, which, when clicked, quickly take the reader to the specified section of the same
page or another page. The table of contents at the top of this document, for example, uses hyperlinks
to anchors embedded throughout this document.
that is preceded by a space is the Exclude Query Term operator. A
hyphen after a parenthesis is treated as the Exclude Query Term
operator. For example, the query Fmoc-Cys(Trt)-OH returns documents
that contain Fmoc-Cys(Trt) and excludes documents that contain OH in
addition to Fmoc-Cys(Trt).
example, 250.01). For example, dancing.parrot is equivalent to
"dancing parrot" with quotes in the query. The term dancing.parrot
is not equivalent to dancing parrot (without quotes).