23.01.2015 Views

View as PDF - Yandex API

View as PDF - Yandex API

View as PDF - Yandex API

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

14<br />

The "request"<br />

group tags<br />

groupby<br />

Description<br />

Grouping parameters for found search results.<br />

Attributes<br />

• mode — Grouping method.<br />

• attr — For service use.<br />

• groups-on-page —<br />

Maximum number of groups<br />

that can be returned per page<br />

of search results.<br />

• docs-in-group —<br />

Maximum number<br />

of documents that can be<br />

returned per group. Any group<br />

may contain fewer documents<br />

than the value set in this<br />

parameter.<br />

• curcateg — For service use.<br />

Takes the value “-1”.<br />

The following example shows the contents of the request grouping tag that are returned for the request http://<br />

xmlsearch.yandex.com.tr/xmlsearchlr=983&l10n=tr&user=xml-searchuser&key=03.79031114:b631r9j587dkl4jko987hgg7bn2kl8a2&query=%22h<strong>as</strong><br />

sample<br />

applications for the most popular programming<br />

%22&sortby=tm&maxp<strong>as</strong>sages=2&groupby=attr%3Dd.mode%3Ddeep.groups-on-page<br />

%3D5.docs-in-group%3D3&maxp<strong>as</strong>sages=3&page=1<br />

<br />

&quot;h<strong>as</strong> sample applications for the most popular programming&quot;<br />

1<br />

tm<br />

2<br />

<br />

<br />

<br />

<br />

response<br />

Results of processing the search query for which information is provided in the request child tags.<br />

Contains the date attribute — the request date and time, in the format<br />

Т for UTC.<br />

Consists of the following sections:<br />

• General information about search results.<br />

• The misspell / re<strong>as</strong>k block.<br />

• The results block.<br />

General information about search results<br />

The tags for the block with general information about search results are shown in the table below.<br />

Tags with general<br />

information about<br />

search results<br />

error<br />

Description<br />

Error description.<br />

Present only when the search request is processed incorrectly<br />

(for example, for an empty request, incorrect parameters,<br />

etc.).<br />

Attributes<br />

code — Error code.<br />

<strong>Yandex</strong>.XML<br />

Developer's guide

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!