Configuring Sun Master Indexes

Adding and Deleting Master Index Decision Maker Parameters

New parameters cannot be used with the default Decision Maker class and existing parameters should not be deleted. If you create a custom Decision Maker class, you might need to add new parameters or delete existing ones for the new class. You can only perform these tasks by modifying the XML file directly.

ProcedureTo Add a New Decision Maker Parameter

  1. In the Projects window, expand the Configuration node in the project you want to modify, and then double-click master.xml.

  2. Scroll to the DecisionMakerConfig element.

  3. Create a parameter element inside the parameters element, but outside any existing parameter elements. Define the following elements:

    • parameter-name – The name of the parameter.

    • parameter-type – The type of parameter. Valid values are java.lang.Long, java.lang.Short, java.lang.Byte, java.lang.String, java.lang.Integer, java.lang.Boolean, java.lang.Double, or java.lang.Float.

    • parameter-value – The value of the parameter.

      For example:


      <parameters>
         <parameter>
            <parameter-name>OneExactMatch</parameter-name>
            <parameter-type>java.lang.Boolean</parameter-type>
            <parameter-value>false</parameter-value>
         </parameter>
         <parameter>
            <parameter-name>MaxDuplicates</parameter-name>
            <parameter-type>java.lang.Boolean</parameter-type>
            <parameter-value>5</parameter-value>
         </parameter>
      </parameters>
  4. Save and close the file.

ProcedureTo Delete a Decision Maker Parameter

  1. In the Projects window, expand the Configuration node in the project you want to modify, and then double-click master.xml.

  2. Scroll to the DecisionMakerConfig element.

  3. To delete one parameter, remove all text between and including the parameter element.

    For example, to delete the ExtensiveSearch parameter in the following sample, you would delete the boldface text.


    <parameters>
       <parameter>
          <parameter-name>OneExactMatch</parameter-name>
          <parameter-type>java.lang.Boolean</parameter-type>
          <parameter-value>false</parameter-value>
       </parameter>
       <parameter>
          <parameter-name>ExtensiveSearch</parameter-name>
          <parameter-type>java.lang.Boolean</parameter-type>
          <parameter-value>true</parameter-value>
       </parameter>
    </parameters>
  4. To remove all parameters, remove all text between and including the starting and ending parameters element.

  5. Save and close the file.