Setting the merge policy with the Configuration Web Service

You can programmatically set the merge policy for the data store 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 store:
    http://localhost:port/ws/config/datastore?wsdl
  2. Use the putGlobalConfigRecord function 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/1/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>