Configuring Sun Master Indexes

ProcedureTo Create a Basic Query (XML Editor)

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

    The file opens in the NetBeans XML editor.

  2. Create a new query-builder element in the QueryBuilderConfig element.

    Make sure the new element is created outside of any existing query-builder elements.

  3. For the new query-builder element, define the attributes listed in Master Index Query Builder Dialog Box Fields and XML Elements.

    For example:


    <query-builder name="PHONETIC-SEARCH" class=
      "com.sun.mdm.index.user.CustomQueryBuilder" 
      parser-class= 
      "com.sun.mdm.index.configurator.impl.querybuilder.KeyValueConfiguration"
       standardize="false" phoneticize="true">
    </query-builder>
  4. To configure the query to use wildcard characters, do the following:

    1. Add a new config element after the opening query-builder element.

      For example:


      <query-builder name="ALPHA-SEARCH" class=
        "com.sun.mdm.index.querybuilder.BasicQueryBuilder"
        parser-class=
        "com.sun.mdm.index.configurator.impl.querybuilder.KeyValueConfiguration"
        standardize="true" phoneticize="true">
         <config>
         </config>
      </query-builder>
  5. 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="UseWildcard" value="true"/>
    </config>

    Note –

    For the default basic query, only the UseWildcard parameter is supported. If you create a custom basic query builder, you can use these elements to define additional parameters. For more information, see Master Index Query Builder Dialog Box Fields and XML Elements.


  6. Save and close the file.