createAgent

Description

Creates a user agent or subchannel.

Syntax

public int createAgent(String user,
	String agentOrChannel,
	String subchannel,
	String trainingText,
	int ageOfInformation,
	int relevance,
	int maxDocs,
	int agentType) throws RemoteException, SearchException

Parameters

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

Return value

Returns a status of: 0 if failure; otherwise, successful.