Configuring Sun Master Indexes (Repository)

Deleting a Master Index Query (Repository)

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 the Threshold file or as a search in the Enterprise Data Manager file, modify those files to point to an existing query. If a defined query is no longer used, you can leave the query in the Candidate Select file 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 the Candidate Select file. For more information about this file and the configurable query options, see Candidate Select Configuration (Repository) in Understanding Sun Master Index Configuration Options (Repository).


ProcedureTo Delete a Query (Configuration Editor)

  1. In the Projects window, right-click the master index application you want to modify, and then click Open.

  2. If the Configuration Editor dialog box appears, click Edit to check out the listed files.

    The Configuration Editor appears.

  3. Click the Query tab.

    The Query page appears.

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

  5. Click Remove.

  6. 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 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 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.stc.eindex.querybuilder.BasicQueryBuilder"
     parser-class= "com.stc.eindex.configurator.impl.querybuilder.KeyValueConfiguration"
     standardize="true" phoneticize="true">
     <config>
     <option key="UseWildcard" value="false"/>
     </config>
    </query-builder>
  4. Save and close the file.