Help > Indexing > Indexing via Scripting > Adding a scripting rule to an existing index

Adding a scripting rule to an existing index

To add a script to your index, follow these steps:

  1. Start Perceptive Enterprise Search - Local Administration Console
  2. Open the index you wish to modify. You can do this by either:
    • Selecting it from the My Index Catalog list
    • Select File > Open an Index from the menu and browse to the location where the index is stored
  3. From the menu, select Index > Content Sources. The indexing rules for your index will be shown.
  4. From the list on the left hand side, make sure Scripting Rules is selected.
  5. On the toolbar, click the New Rule button.
  6. Select the type of rule you wish to add. It may be one of the following:
    • Blank Script
      Creates a new script with empty placeholder functions.
    • File Rules
      Create a new script with placeholder functions for file rules
    • Metadata Provider
      Creates a new script with placeholder functions for metadata injection
    • Copy script from another index
      Allows you to copy a script from another existing index
    • Create a script from a template
      Provides you with a list of templated scripts
  7. Once you have made your script selection, you will be presented with the source of the script for editing. You can click the Full Screen Editor link to view the script in a larger editor. When you have made your change, click Next.
  8. The final step of the wizard is to give it a name. The name should be unique within the index. You may also set the following debugging options:
    • Enable script debugger
      If an error occurs, you will be prompted to launch the systems script debugger.
    • Launch debugger on start
      When enabled, the system script debugger will be launched when the script is first accessed.
    • Suppress errors
      Prevent error messages from being shown to the user.
    • Enable trace
      Allows you to use Debug.Print statements in the script.
    Click Finish to create the rule.
  9. Now that the email rule has been created, you must Update the index to have the items added to the index. Close the Indexing Rules window and select Index > Update from the menu.  See Updating your index for details.