Clean up search history

After a period of time, you may want to clean up the end user search history in IDOL and remove certain search terms. To do so, follow these steps:

  1. Run the following command to export the search history data from IDOL:

    java -jar lib/search.jar exportSearchHistory ./search.yml <path> <start> <max results>

    This command consists of the following parameters:

    • path: Path and name of the exported *.json file. This parameter is required.
    • start: The first result to be exported from the entire list. The default value is 1. This parameter is optional.
    • max results: The maximum number of results to export from the entire list. The default value is 1000000. This parameter is optional.

    For example, java -jar lib/search.jar exportSearchHistory ./search.yml ./test.json.

  2. Run the following command to remove certain search terms from the exported file:

    java -jar lib/search.jar removeSearchHistory ./search.yml <search detail ids>

    In this command, <search detail ids> refers to the search history text IDs to be removed. You can split multiple text IDs by commas. This parameter is required.

    For example, java -jar lib/search.jar removeSearchHistory ./search.yml History_CONSUMER_lync,History_CONSUMER_managem.

    To remove all search terms and clear the search history, run the following command:

    java -jar lib/search.jar idol ./search.yml cleardb SearchHistory

  3. Run the following command to import the updated search history data to IDOL again:

    java -jar lib/search.jar importSearchHistory ./search.yml ./test.json