Configuring Sun Master Indexes (Repository)

ProcedureTo Configure the Default Survivor Strategy

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

    The file opens in the NetBeans XML editor.

  2. Scroll to the default-survivor-strategy element, and then to the strategy-class element.

  3. Do any of the following:

    • To modify an existing parameter value, scroll to the parameter you want to modify, and then change the value of the parameter-value element.

      For example:


      <default-survivor-strategy>
         <strategy-class>com.stc.eindex.survivor.impl.MySurvivorStrategy
         </strategy-class>
         <parameters>
            <parameter>
               <parameter-name>ConfigModuleName</parameter-name>
               <parameter-type>java.lang.String</parameter-type>
               <parameter-value>MySurvivorCalculator</parameter-value>
            </parameter>
         </parameters>
      </default-survivor-strategy>
    • To add a new parameter, create a new parameter element within the parameters element, and then define the parameter elements described in Master Index Default Survivor Strategy Parameter Elements (Repository).

    • To delete a parameter, scroll to the parameters element, and then delete all text between and including the parameter element that define the parameter.

    • To delete all parameters, delete the all text between and including the parameters element.

  4. Save and close the file.