Creates a user agent or subchannel.
public int createAgent(String user, String agentOrChannel, String subchannel, String trainingText, int ageOfInformation, int relevance, int maxDocs, int agentType) throws RemoteException, SearchException
user – user name
agentOrChannel – name of a user agent or channel
subchannel – name of a subchannel, or null if it is an agent
trainingText – text used in training of this agent
ageOfInformation – age of documents to be searched
relevance – minimum weight of documents to be searched
maxDocs – maximum number of documents
agentType – type of agent
Returns a status of: 0 if failure; otherwise, successful.