Setting the merge policy with the Configuration Web Service

You can programmatically set the merge policy for the data domain by updating the Global Configuration Record.

To set the merge policy in the Global Configuration Record:

  1. In a tool such as SOAP UI, access the Configuration Web Service on the Oracle Endeca Server for the data domain, using this syntax:
    http://host:port/endeca-server/ws/config/dataDomain?wsdl

    host and port specify the host name and port on which the Endeca Server is running and dataDomain is the name of the Endeca data domain to be merged.

  2. Use the putGlobalConfigRecord operation to set the value of the mdex-config_MergePolicy attribute in the Global Configuration Record, as in this example that changes the merge policy to aggressive (note that all attributes must be put, but the example omits most of them for the sake of clarity):
    <config:configTransaction  
       xmlns:config="http://www.endeca.com/MDEX/config/services/types/2/0" 
       xmlns:mdex="http://www.endeca.com/MDEX/config/XQuery/2009/09">
       <config:putGlobalConfigRecord>
         <mdex:record xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
           ...
          	<mdex-config_Key type="mdex:string">global</mdex-config_Key>
    	      <mdex-config_MergePolicy type="mdex:string">aggressive</mdex-config_MergePolicy>
           ...
         </mdex:record>
       </config:putGlobalConfigRecord>
    </config:configTransaction>