Configuring Sun Master Indexes

Deleting a Master Index Query

Once you create a query, you can delete it if needed. If any of the queries you delete are defined as the matching query in master.xml or as a search in midm.xml, modify those files to point to an existing query. If a defined query is no longer used, you can leave the query in query.xml as it will not affect processing if you do not delete the query.


Note –

The changes you make on the Query page of the Configuration Editor are reflected in query.xml. For more information about this file and the configurable query options, see Query Configuration in Understanding Sun Master Index Configuration Options .


ProcedureTo Delete a Query (Configuration Editor)

  1. In the Projects window, right-click the Configuration node in the project you want to modify, and then click Edit.

    The Configuration Editor appears.

  2. Click the Query tab.

    The Query page appears.

  3. In the Blocking Queries or Basic Queries section, select the query you want to delete.

  4. Click Remove.

  5. On the Configuration Editor toolbar, click Save.

ProcedureTo Delete a Query

  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. Scroll to the query-builder element that contains the query you want to remove.

  3. Delete all text between and including the query-builder element defining the query, including any defined query blocks.

    For example, to delete the query named PHONETIC-SEARCH, you would remove all text below.


    <query-builder name="PHONETIC-SEARCH"
     class= "com.sun.mdm.index.querybuilder.BasicQueryBuilder"
     parser-class= "com.sun.mdm.index.configurator.impl.querybuilder.KeyValueConfiguration"
     standardize="true" phoneticize="true">
     <config>
     <option key="UseWildcard" value="false"/>
     </config>
    </query-builder>
  4. Save and close the file.