Product DocsMenu

Applying a Source Conversion Script

When preconversion or postconversion scripts are available to CES (see Adding a Preconversion Script and Adding a Postconversion Script), you can apply a conversion script to every documents of a specific source. Only one preconversion script and one postconversion script can be applied per source.

Notes:

  • You can execute the conversion script on every document of every index source (see Applying a Global Conversion Script).

  • CES 7.0.6424+ (February 2014) Once a preconversion, postconversion, or custom converter script (.NET, JScript, or VBScript) is applied to a source, you can modify and save the script file on the fly and it will be immediately and automatically reloaded and applied, even on an ongoing incremental refresh, full refresh, or rebuild of the source.

  • CES 7.0.6607+ (April 2014) An entry in the CES Console and logs identifies preconversion and postconversion scripts applied during a rebuild, full refresh, or incremental refresh of a source. These log entries can be useful to help troubleshoot source issues caused by conversion scripts.

    The log entries are in the form: 

    IMPORTANT|[yyyy-mm-dd]|[hh:mm:ss]|[n]|A [SourceAction] on source [SourceName] (with conversion script [ListOfPre&PostConversionScripts]) has been requested by coveo\[username].

    Example: The following log entry shows that the MyPreconversionScript and MyPostconversionScript scripts were applied to the rebuild of the source FileShare1.

    IMPORTANT|2014-09-16|15:02:54|0|A rebuild on source FileShare1 (with conversion script MyPreconversionScript, MyPostconversionScript) has been requested by coveo\crawlinguser.

To apply a source conversion script

  1. On the Coveo server, access the Administration Tool (see Opening the Administration Tool).

  2. Select Index > Sources and Collections.

  3. In the Sources and Collections page:

    1. In the Collections section, select the collection that contains the source to which you want to apply a conversion script.

    2. In the Sources section, expand the appropriate source drop-down list, and then select Edit Conversion Script.

       

  4. In the Conversion Scripts page for the source:

     

    1. In the Preconversion Scripts or Postconversion Scripts drop-down list, select the appropriate script.

      Note: A script appears in the appropriate drop-down list only after being added to CES (see Adding a Preconversion Script and Adding a Postconversion Script).

    2. If the preconversion or postconversion script requires other parameters, for each parameter, click Add Parameter in the Parameters section, and then enter the name and value of the parameter.

    3. Click Apply Changes. Note that it is possible to set parameters to scripts.

      CES 7.0.9434+ (September 2018) Once you apply the script to a source, on the script page, the source name will appear next to Used By.

What's Next?

Rebuild the source.

People who viewed this topic also viewed