Configuring Sun Master Indexes (Repository)

Modifying a Search Page on the EDM (Repository)

Once a search page is defined, it can be modified as needed. You can perform any of the following actions to customize existing search page elements.

Modifying a Search Page Definition

Once a search page is defined in the Enterprise Data Manager file, you can modify the search page definition. The following properties can be modified: the name of the search, the number of fields that appear on each row of the search page, and whether the EUID or local ID fields are visible.

ProcedureTo Modify a Search Page Definition

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

    The file opens in the NetBeans XML editor.

  2. Scroll to the page-definition element in the gui-definition element.

  3. Scroll to the eo-search element, and then to the simple-search-page element you want to modify.

  4. In the simple-search-page element, change the value of any of the elements listed in EDM Search Page Definition Elements.

    For example:


    <simple-search-page>
       <screen-title>Customer Search</screen-title>
       <field-per-row>2</field-per-row>
       <show-euid>true</show-euid>
       <show-lid>false</show-lid>
       <instruction>Enter the EUID below.</instruction>
    </simple-search-page>
  5. Save and close the file.

Modifying Search Fields

Once field groups and fields are defined for a search page, you can modify the properties of the group and of the fields contained in a group. For more information about the elements that contain the search field configuration, see EDM Search Field Definition Elements.

ProcedureTo Modify Search Fields

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

    The file opens in the NetBeans XML editor.

  2. Scroll to the page-definition element in the gui-definition element.

  3. Scroll to the eo-search element, and then to the simple-search-page element you want to modify.

  4. In the simple-search-page element, scroll to the field-group you want to modify, and do any of the following:

    • To modify the name of the boxed area in which the field group appears in the EDM, change the value of the description element.

    • To add a new field to a field group, create and name a new field-ref element in the appropriate field-group element.

    • To modify the name of a field defined for a field group, change the value of the appropriate field-ref element.

    • To specify whether a field is required, add a required attribute and specify a value defined in EDM Search Field Definition Elements.

    • To specify whether a field is used for range searching, add a choice attribute and specify a value defined in EDM Search Field Definition Elements.

    • To delete a field from a field group, delete all text between and including the field-ref tags that define the field to be deleted.

    • To delete an entire field group, delete all text between and including the field-group tags that define the field group to be deleted.

  5. Save and close the file.

Modifying Search Options

Once search options are defined for a search page, you can modify those options if needed. For more information about the elements that define search options, see EDM Search Option Elements.

ProcedureTo Modify Search Options

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

    The file opens in the NetBeans XML editor.

  2. Scroll to the page-definition element in the gui-definition element.

  3. Scroll to the eo-search element, and then to the simple-search-page element you want to modify.

  4. In the new simple-search-page element, scroll to the search-option element and do any of the following:

    • To modify the name of the search option button, change the value of the display-name element.

    • To modify the query type of the selected search, change the value of the query-builder element. The query you specify must match a query defined in the Candidate Select file.

    • To specify that a search return weighted results, change the value of the weighted element to true.

    • To specify that a search return unweighted results, change the value of the weighted element to false.

    • To specify that wildcard characters can be used in a search, change the UseWildCard parameter value element to true.

    • To specify that wildcard characters cannot be used in a search, change the UseWildCard parameter value element to false.

  5. Save and close the file.