Configuring Sun Master Indexes

Defining Master Index Fields for Phonetic Encoding

You can specify the fields you want to be phonetically encoded, the fields that store the encoded values, and the type of phonetic encoder to use for each field, such as NYSIIS or Soundex. A sample phonetic encoding structure for the XML file is included at the end of these instructions.

ProcedureTo Define a Field for Phonetic Encoding (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. In the object structure in the left pane, create the field that will contain the phonetic value of the field to be encoded.

    For more information, see Adding a Field to the Master Index Object Structure.

  3. Click the Phoneticized Fields tab.

    The Phoneticized Field page appears.

  4. In the Phoneticized Fields section, click Add.

    The Phoneticized Field dialog box appears.

  5. Select values for the fields described in Master Index Phonetic Encoding Fields and Elements.

  6. Click OK.

    The phonetic encoding definition is added to the Phoneticized Fields list.

  7. On the Configuration Editor toolbar, click Save.

ProcedureTo Define a Field for Phonetic Encoding (XML Editor)

In object.xml, create the field that will contain the phonetic value. For more information, see Adding a Field to the Master Index Object Structure.

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

    The file opens in the NetBeans XML editor.

  2. Scroll to the phoneticize-fields element in the PhoneticEncodersConfig element.

  3. Create a new phoneticize-field element within the phoneticize-fields element.

  4. In the new phoneticize-field element, create and define the elements described in Master Index Phonetic Encoding Fields and Elements.

  5. Save and close the file.


Example 4 Phonetic Encoding Structure


<phoneticize-fields>
   <phoneticize-field>
      <unphoneticized-source-field-name>Person.FirstName
      </unphoneticized-source-field-name>
      <phoneticized-target-field-name>Person.FirstNamePhoneticCode
      </phoneticized-target-field-name>
      <encoding-type>Soundex</encoding-type>
   </phoneticize-field>
</phoneticize-fields>