Google Search Appliance Protocol Reference User Manual

Page 50

Advertising
background image

Google Search Appliance: Search Protocol Reference

Request Format

50

11. Metadata can have multiple attributes with the same name. For example:

<metadata>

<meta name="Name" content="Jenny Wong"/>
<meta name="Phone" content="x12345"/>
<meta name="Phone" content="x789"/>
<meta name="Floor" content="3"/>

If multiple values are available and if any of the attribute values match the search query, a link to
the document appears in the search results.

12. While inmeta supports wildcard search, it does not support boolean logic. Use requiredfields

instead to combine wildcard search and boolean logic.

Examples

Example 1. These first query examples show how search requests are related to meta tags in the
following example of a web page.

<html>

<head>

<title>My Title</title>
<meta name="myFloat" content="1.23456">
<meta name="myInteger" content="8" />
<meta name="myCurrency" content="123.45" />
<meta name="myDate" content="2011-03-05" />

</head>
<body>

Hello world.

</body>

</html>

The following search request is for a match to the lower bound value within the currency range:

inmeta:mycurrency:60.00999..

The following search request is for an exact match to the float value:

inmeta:myfloat:1.23456..1.23456

The following search request is for an exact match to a date or date range:

inmeta:mydate:2011-03-05..2011-03-05
- or -
inmeta:mydate:daterange:2011-03-05..2011-03-05

Example 2. The following search request returns results that contain the word “Scott” somewhere in the
“author” meta tag. Some example meta tags that satisfy this search request are:

<meta name="author" content="Sir Walter Scott">
<meta name="author" content="F. Scott Fitzgerald">

books inmeta:author~Scott

Example 3. The following search request returns results that contain “size” meta tag values between 30
and 50 inches:

flat+panel+TV inmeta:size:30..50

Advertising