The docContextID element is a child of the viewInContext element. It has no child elements..

Search user interfaces generally present a list of search results and allow the user to select a result for viewing. This viewing action is handled by a viewInContext request. The docContextID is the identifier of the item to view. This identifier is contained in the document result object.

ATG Search uses the identifier to look up the original source content, typically an HTML or XHTML file (other rich content types are converted to HTML during indexing, except PDF files).

The viewInContext request can also accept text regions, which will be highlighted in the returned source content. The text regions are also contained in the retrieved document result object. These text regions are translated into regions in the source content, and <span> tags are inserted to implement the highlighting.

Together, the item identifier and text regions are called the context ID, which is passed in the request XML as shown:

<docContextID>doc:begin.end,begin.end,... </docContextID>

The doc is the document identifier, and the pairs of begin and end values are the text regions. More than one region may be passed. A pair of 0.0 represents an empty highlighting region.

 
loading table of contents...