Google Search Appliance Protocol Reference Manual de usuario Pagina 89

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 116
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 88
Google Search Appliance: Search Protocol Reference Dynamic Result Clustering Service /cluster Protocol 89
The search appliance returns the following JSON response:
{ "clusters": [
{ "algorithm": "Concepts",
"clusters": [
{ "label": "canada chile culebra",
"docs": [ 18,19,20,21,23,26,27,29,30,32]
},
{ "label": "dewey culebra",
"docs": [ 1,9,36]
}
]
}
],
"documents": [
{ "url": "http://server.example.com/file42.pdf",
"title": "TLA Annual Report 2009--Acronyms in the Public Sector
<b>...</b>",
"snippet": "<b>...</b> Soy Flz (<b>Culebra</b>) <b>Culebra</b>
34,102 34,102 2.28 <b>...</b> Soy Flz (<b>Culebra</b>)
was re-elected<br> Executive Director of <b>Culebra</b>,
effective May 1, 2009. <b>...</b>"
},
...,
{ "url": "http://server.example.com/turtle_island.html",
"title": "Puerto Rico Travel",
"snippet": "<b>...</b> rentals and useful information about <b>Culebra</b>
<b>...</b>"
}
]
}
The top-level entries are described in the following table.
The dynamic result clustering service’s default JavaScript client ignores the
documents
element and does
not use the
docs
array.
Entry Description
clusters
The output from different clustering algorithms. There is only one supported cluster
algorithm, so the value of
algorithm
must be
Concepts
.
The
clusters
category consists of:
A series of
algorithm
and subordinate
clusters
pairs. The
algorithm
is the
name and
Concepts
is the only supported algorithm.
The subordinate
clusters
is a series of
labels
and the array of
docs
that have
that label.
The label is a query suggestion. The
docs
are indexes into the
documents
section that follow.
Each
label
provides an alternative query, and each
docs
array tells the document
location indices.
documents
A sequence of the URL, title, and snippet for each of up to 100 top search results
from a search query. The search appliance creates the
docs
arrays from the
documents
list.
Vista de pagina 88
1 2 ... 84 85 86 87 88 89 90 91 92 93 94 ... 115 116

Comentarios a estos manuales

Sin comentarios