Google Search Appliance Protocol Reference Bedienungsanleitung Seite 98

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 116
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 97
Google Search Appliance: Search Protocol Reference Query Suggestion Service /suggest Protocol 98
Response:
[ "<term 1>", "<term 2>", ..., "<term n>" ]
Or, if no result:
[]
OpenSearch Format
The
os
format uses the OpenSearch protocol.
Request:
/suggest?q=<query>&max=<num>&site=<collection>&client=<frontend>&
format=os
Parameter Description Default Value
callback
Provides a JSONP compatible response from suggest. If you
set callback=test, it will return:
/* GSA Suggest Service JSONP Response. */
test(<WHAT WAS SUPPOSED TO BE RETURNED>);
The prefix
/* GSA Suggest Service JSONP Response. */
is
hard-coded in the response to safeguard against cross-site
scripting attacks on the JSONP callback name. You must
remove the prefix before the response can be parsed by
JavaScript.
client
Front end name.
default_frontend
format
The output format in which the client wants the results.
os
max
The maximum number of results that the suggest server
should return. The minimum is
0
, which indicates that the
server should return an empty set, however this result
would not be meaningful.
The maximum is not defined. If this parameter is not set,
then the default value is 10 possible matches. If fewer
suggestions are configured, then they are returned.
10
(matches)
q
The partial query string that a user enters in the search box.
The minimum size is one character. If set to
0
, that is, if the
search box is empty, then the suggest client side JavaScript
doesn’t send a request to query suggestion. Even if an
administrator implements a custom interface, sending an
empty token returns an empty set as the result. The
maximum size of the
token
parameter is not defined.
None
site
Collection name.
default_collection
Seitenansicht 97
1 2 ... 93 94 95 96 97 98 99 100 101 102 103 ... 115 116

Kommentare zu diesen Handbüchern

Keine Kommentare