Customizing the Global Type Ahead Java Script Component

To customize the Global Type Ahead Java Script Component for your use, follow these steps:

  1. Edit the autoCompleteDemoApp.js file in the your root folder.
  2. In the spectrumServerName field, enter the name of the Spectrum™ Technology Platform server including the port.
  3. In the authentication field, enter one of the following for the type of the Spectrum™ Technology Platform authorization required.
    • None
    • Session
    • Client
    • Token
    • Self-created authentication token
  4. In the defaultCountry field, specify the default country. Enter the full country name. You should specify the country where most of the addresses in your data are located. For example, if most of your addresses are in the United Kingdom, specify the United Kingdom. If you omit the country when entering addresses, Global Type Ahead returns the best available candidates for the Default Country specified.
  5. In the fuzzy field, enter the type of matching logic to use. Global Type Ahead implements algorithms that optimize the retrieval of addresses, even when the input spelling is incorrect or incomplete. These capabilities are referred to as Fuzzy Match, and are implemented through match setting constraints.
    • None—Fuzzy Match is disabled by default.
    • Hard Match—The hard match allows one character substitution, insertion, deletion, or transposition.
    • Soft Match—The soft match allows two character substitutions, insertions, deletions, or transpositions.
      Note: The use of fuzzy matching is only available in the alternative tool display.
  6. In the maxCandidatesReturned field, enter a number between 1 and 99 for the maximum number of search candidates to be returned. The maximum is 99. The default is 5.
  7. In the sessionTimeout field, enter the timeout value for token authentication in minutes. The default is 30.