doQueryWithAgent  getCountOfChannels

Appendix B: Using the Search Services

editAgent

Description

Modifies a user agent or a subchannel.

Syntax

public int editAgent(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 an 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.





Copyright © 2004. Sybase Inc. All rights reserved. getCountOfChannels

View this book as PDF