[ You are here: XTF -> Tag Reference -> crossQuery -> Search Result Formatter -> Query Result Tag ]

Query Result Tag

This tag is the outermost container tag for the results produced by the crossQuery servlet. It has the form:
<crossQueryResult queryTime = "TimeInSeconds"
                  totalDocs = "NumberOfDocs"
                  startDoc  = "FirstDocNumber"
                  endDoc    = "LastDocNumber">
 
    Parameters
    Query
 
    Spelling      <!-- if spelling corrections requested and applicable -->
 
    DocumentHit
    DocumentHit
        …
 
    FacetResult   <!-- if facets were queried -->
    FacetResult
 
</crossQueryResult>
where
queryTime="TimeInSeconds" is the amount of time, in seconds, that the servlet spent parsing the query, processing it, and gathering the results.
totalDocs="NumberOfDocs" is the number of documents that had matches for the specified query.
startDoc="FirstDocNumber" is the sequential document number for the highest ranking document returned by the current Query. Note that this may not be the overall highest ranking document if a paged query was specified. See the query tag for more details about performing paged queries.
endDoc="LastDocNumber" is the sequential document number for the lowest ranking document match returned by the current query. Note that this may not be the overall lowest ranking document if a paged query was specified. See the query tag for more details about performing paged queries.
and
Parameters is the same <parameters> block that was sent to the Query Parser stylesheet
Query is the query block that was output by the Query Parser stylesheet, included for reference. This <query> block and the <parameters> block may be useful to the Search Result Formatter stylesheet in formulating its output.
Spelling is a tag that will appear only if spell checking was enabled in the query, and a spelling correction dictionary was created at index time (i.e. enabled in textIndexer.conf), and the engine detected likely misspelled words and suitable suggested replacements. See the Spelling Correction Result Tag tag for more information.
DocumentHit is one or more tags, one per document in which search hits were found. These tags contain specific hits for each document. See the Document Hit Tag for more information.
FacetResult is a tag that will be included only if a facet query was performed. These tags will contain grouped counts of the matching documents. See the Facet Result Tag for more information.