Configuring Sun Master Indexes (Repository)

Deleting a Query Block From a Master Index Query (Repository)

Once you create a block definition, you can delete it if needed. When deleting a query block, verify that the query will still include all the needed fields.

ProcedureTo Delete a Query Block (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 section, select the query you want to modify and then click Edit.

    The Blocking Query Builder dialog box appears.

  5. In the Block Definitions section, select the definition you want to delete.

  6. Click Remove.

  7. On the confirmation dialog box, click Yes.

  8. On the Configuration Editor toolbar, click Save.

ProcedureTo Delete a Query Block (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 blocking query to modify.

  3. In that query-builder element, delete all text between and including the block-definition element defining the data block to remove.

    For example, in the sample below, to delete the SSN block you would delete the boldface text.


    <config>
       <block-definition number="ID000007">
          <block-rule>
             <equals>
                <field>Enterprise.SystemSBR.Person.SSN</field>
                <source>Person.SSN</source>
             </equals>
          </block-rule>
       </block-definition>
     <block-definition number="ID000008">
     <block-rule>
              <equals>
                 <field>Enterprise.SystemSBR.Person.DOB</field>
                 <source>Person.DOB</source>
              </equals>
     </block-rule>
     </block-definition>

    Note –

    Each blocking query must contain one config element, and the config element must contain at least one block definition.


  4. Save and close the file.