Java Connector Tag Library for ArcIMS 9.2  

addRelevance


Used in

metadata  

Nested in

None

Syntax

<aims:addRelevanceAttribute Description Table

     Attributes that set values:
     (r)docId="string"
     (r)relevance="1 - 10"

     Attributes that pass objects:
     (r)connectionId="object"
     (r)service="object"
>

     No nested tags
</aims:addRelevance >
(r): Attribute or nested tag is required.

Description


Restrictions


Attribute Descriptions for addRelevance

AttributeUsage
connectionIdHolds information about the connection. The connection is created using aims:httpConnection or aims:tcpConnection.
docIdString used to uniquely identify a document. The format for an ID is the following: {HHHHHHHH-HHHH-HHHH-HHHH-HHHHHHHHHHHH} where H is a hexadecimal digit (0-9,a-f,A-F). The ID is limited to 38 characters.
relevanceValue between 1 and 10 indicating the relative relevance of the document to the client. The value is added to the existing value for a new relevance total.
serviceThe name of the metadata service.
Back to top
 

Examples for addRelevance

Example 1: Send a request to the server to increment a particular document's relevance.
<aims:getSettings id="hostName" value="meta_host_name" />
<aims:getSettings id="portNumber" value="meta_port_number" />
<aims:getSettings id="serviceName" value="meta_service_name" />

<aims:tcpConnection id="myConnection" host="<%= hostName %>" port="<%= portNumber %>" debug="true" />

<% String docId = request.getParameter("docId"); %>

<aims:addRelevance relevance="4" connectionId="<%= myConnection %>" service="<%= serviceName %>" docId="<%= docId %>" />
Back to top