Configuring Sun Master Indexes (Repository)

ProcedureTo Modify a Query (XML Editor)

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

    The file opens in the NetBeans XML editor.

  2. Scroll to the query-builder element that contains the query you want to modify.

  3. Modify any of the attributes listed in Master Index Query Builder Dialog Box Fields and XML Elements (Repository).

    For example:


    <query-builder name="ALPHA-SEARCH" class=
      "com.stc.eindex.querybuilder.MyQueryBuilder" 
      parser-class=
      "com.stc.eindex.configurator.impl.querybuilder.KeyValueConfiguration"
       standardize="true" phoneticize="false">
    </query-builder>
  4. To add a new query parameter (for custom query builders only):

    1. Add a new config element between the query-builder tags.

    2. In the new config element, create an option element and then define key and value attributes for the new element.

      For example:


      <config>
       <option key="SearchAlias" value="true"/>
      </config>

      See Master Index Query Builder Dialog Box Fields and XML Elements (Repository) for information about the key and value pairs available to the default basic queries.

  5. To modify a parameter, scroll to the option element that defines the parameter and then change the value of the value attribute.

  6. To delete a parameter, scroll to the config element of that query, and then delete the option element containing the parameter to remove.

    For example, to remove the SearchAlias parameter in the following sample, delete the boldface text.


    <config>
       <option key="SearchAlias" value="true"/>
     <option key="UseWildCard" value="false"/>
    </config>
  7. For blocking queries, you can modify query blocks by performing any of the following procedures:

  8. Save and close the file.