SearchResultDocument
results
array of SearchResultGroup
and of the array
returned by the <@td.search>
tag.
Properties
-
String itemKey
- This document's item Key, unique to the project. In some cases, may be of the form key:elementId for chunked content.
-
String contextKey
- The key of this document's context document, or
xxnullxx
if it is a stand-alone document. -
String contextRefId
- If this document is present in its parent context more than once, the
contextRefId
identifies which version the current document represents. -
boolean contextualized
true
if this document is present in a parent context document. Equal tocontextKey != xxnullxx
.-
String highlight
- If this document was returned as part of a search query, this field will contain the text contents surrounding the most-relevant "hit" in the document.
-
Map metadata
- A hash representing the metadata on this document. The keys are metadata names as assigned in the TD admin application or present in the source document. The value is an array of strings representing the values of that metadata. If a key is present it is guaranteed that there will be at least one element in the values array.
-
boolean virtual
- Describes whether this search result represents a physical file in a Titania Delivery project, or a virtual, generated document. Examples of virtual documents include topics generated for DITA <topicref> elements that specify a title but no @href or @keyref, or a chunked section of a non-DITA document.