The Perceptive Enterprise Search templates provide simple substitution tags such as Interacting with Objects, {FILENAME} and template tags such as {CATEGORIES}. These tags allow you to handle most situations when building templates. However to achieve more complex results, it may require direct access to the Perceptive Enterprise Search.dk COM objects.
The Perceptive Enterprise Search COM objects provide access to information about the result list and documents that your are working with. Internally, Perceptive Enterprise Search is mapping the substitution symbols to their corresponding COM object method or property. For example, Interacting with Objects maps to Document.Title.
It is possible to gain access to the COM objects in your templates. The objects available to you are:
Search | ISYSSearch | The search object contains the information about the search that was executed in the current request. It is provided for read-only use and modifications to this object are not reflected in the search results. |
ResultList | ISYSResultList | The result list represents the search results for the current result. You have complete access to all aspects of the results including documents, categories and entities. |
Document | ISYSDocument | The document object represents the current document that is being processed. When used in a ResultList template the document object will change as the result list is enumerated. In a Document template it represents the document that is being displayed. |
Access to Perceptive Enterprise Search objects is only available through script.
<table> <% For Each Category in ResultList.Categories %> <tr> <td><%= Category.Name %></td> <td><%= Category.Count %></td> </tr> <% Next %> </table>