SetDocId method: PTDirectTransferObject class

Syntax

SetDocId(Document_ID)

Description

Use the SetDocId method to set the document ID for a document to be indexed.

Note:

For PeopleSoft use, the document ID is the component URL as drilling url. A complete URL similar to the drilling URL generated through PeopleSoft Query should be provided as input. An update to an existing search document expects the same document ID to be provided in the request, otherwise the search document will be indexed as a new document.

Parameters

Parameter Description

Document_ID

Specifies a document ID as a String.

Returns

An Integer value indicating the libcurl error code.

Example

Local PTDirectTransferObject &PTDTObject = CreateDirecttransferObject();
Local integer &return = &PTDTObject.SetDocId("1");