Previous Topic: Special ParametersNext Topic: Example Script Use in a Search Definition


Content Search Parameters

When defining a search against the content database, a stored procedure is not used. Instead, a number of predefined parameters and results columns can be used in the content search definition. These parameters and the associated results columns are listed in Search Definition Syntax. Extracts from an example content search definition follow:

Example content search definition

<search
     spname="Content_Search"  major="1"  minor="0"
     label="Content Search"  class="EventReview"  show_parameters="true"
     database="content"  help="help/htm/Content_Search.htm">

     <parameters>
     …
          <parameter name="txtSearchTerm"  type="text"  argpos="3" size="100" rows="5" colspan="10" 
           value="" label="Search Term:" tooltip="Enter text to search for in the content"/>
          <parameter name="chkEE"  type="checkbox"  argpos="17" label="E-Mail Events:" 
           value="true" align="left" tooltip="Select to get captured Email Events" report="false"/>
          <parameter name="lstEE"  type="list"  argpos="4" value="1" tooltip="Select to limit source 
           of Email Events" report="false">
               <option>Internal and External</option>
               <option>Internal Only</option>
               <option>External</option>
          </parameter>
          <parameter name="txtNameMatch" type="text" argpos="9" colspan="3" label="Name Match:" 
           size="90" tooltip="Match string for user names" onkeypress="javascript:NameMatch();" 
           onchange="javascript:NameMatch();" report="false"/>
          <parameter name="txtSpecificMatch" type="lookup" argpos="10" colspan="2" label="Specific Match:" 
           size="80" lookup_function="NameLookup" tooltip="Select a list of user names" 
           onkeypress="javascript:SpecificMatch();" report="false"/>
          <parameter name="dateRange" type="date_range" argpos="11" report_label="Date Range:"/>
          </parameters>
<results row_function="_EventDetails" ref="event_uid" ref2="doc_id" help="help/htm/Content_Search_Results.htm">
               <column name="event_uid"  type="id"  hidden="true"/>
          	<column name="doc_id"  type="id"  hidden="true"/>
          	<column name="event_type"  type="icon"  width="3%"  label="Event Type" hide_label="true"/>
          	<column name="attachment"  type="icon"  width="3%"  label="Attachment" hide_label="true"/>
          	<column name="relevance"  type="text"  width="5%"  label="Relevance"/>
          	<column name="subject"  type="text"  width="42%" label="Subject"  show_tooltip="true" />
          	<column name="timestamp"  type="timestamp"  width="17%"  label="Timestamp" show_tooltip="true" />
          	<column name="participants"  type="text"  width="30%" label="Participants" show_tooltip="true" />
          	<tool name="similar" tooltip="More Like This" icon="similar-results.gif" function="SimilarContentResults"/>
          	<tool name="more" tooltip="More Results" icon="more-results.gif" function="MoreContentResults"/>
         	<script>
              	'More like this' function goes here.
         	</script>
         </results>
</search>