This document describes the page result format returned by Vespa.
This result format is used when presentation.format
is set to page.
This format is usually used with page templates.
The tags of the format are described below.
Subtags will be rendered in the order listed here.
The format is open,
all parsers must ignore attributes and child tags not mentioned here.
<page>
The root tag of a page result: The single top-level section of the page.
Attribute
Description
Present
version
The version of this format - currently 1.0.
Always
layout
The name of the top-level layout to use for this page.
If specified in the page template used.
For regular permissible subtags, refer to section.
<section>
A layout "box" in a page.
Attribute
Description
Present
id
The id of this section.
If specified in the page template used.
layout
The name of the top-level layout to use for this page.
If specified in the page template used.
region
The id of the region in the layout of the parent section where this should be placed.
The relevance of this item - usually a normalized number between 0 and 1.
Always
source
The name of the source producing this hit.
Always
type
A space-separated list of type identifiers of this hit.
If a type is set in the hit.
Subtags:
Hits have one subtag for every field they contain,
where the field name is the name of the tag and the toString of the field content is the content of the tag.
<group>
A hit which contains nested hits. Used to organize hits hierarchically.
Has the name attributes and subtags as hit,
but may also contain nested hit and group tags.
Example
A page which should be rendered with two columns on top.