Administer > Smart Analytics Administration > Smart Analytics APIs > APIs for Hot Topic Analytics indexing

APIs for Hot Topic Analytics indexing

If you want to tailor the index schedule of Hot Topic Analytics, you can use the following out-of-box Javascript APIs to control when to run the index task:

  • lib.aciindex.manualFullReindex

    You can use this API to manually run a full index for the specified file that is used by Hot Topic Analytics.

  • lib.aciindex.manualIncrementalIndex

    You can use this API to manually run an incremental index for the specified file that is used by Hot Topic Analytics.

These two functions will run in synchronous mode. We recommend that you run these two functions in the background schedule of HPE Service Manager.

Syntax
lib.aciindex.manualFullReindex(file)

lib.aciindex.manualIncrementalIndex(file)

Arguments
Name Data type Required Description
file Datum object Yes

This argument is the Service Manager table (for example, "probsummary") that holds the input source data.

Note Make sure that the fields of this "file" have been added into the Filter Fields section in the Hot Topic Analytics configuration (System Administration > Ongoing Maintenance > Smart Analytics > Hot Topic Analytics). For more information, see Configure Hot Topic Analytics.