Prerequisites

About this task

As discussed in the previous section, this example can either use an existing search collection that is based on the default-push collection or will create a new collection that is based on that collection. If you are using an existing search collection, you may want to use the Watson Explorer Engine administration tool to remove all data from the target collection before running this sample application. Removing all existing data will make it easier for you to verify that this sample application does indeed match the data that this sample application enqueues.

As discussed in Authentication, most Watson Explorer Engine API functions require certain rights in order to function properly. The code for the sample application discussed in this section contains an explicit username and password. In order to run this example, you must do one of the following:

Procedure

  1. change these values to those of a privileged user in your Watson Explorer Engine installation and then recompile the FirstPush.java or FirstPush.cs source code
  2. create an apitestuser with the password testpw in your Watson Explorer Engine installation. This user must have Admin Tool User and Modify Search Collection privileges. (See Privileges Required for Using API Functions for more information about the privileges that are required for using the Watson Explorer Engine API.)

Results

Once you have satisfied these prerequisites, proceed to the next section for information about compiling and running the sample application.