public class
Uploader
extends Object
This class reads in a json file to upload all the requests to the Cloud Search Indexing API.
java -Dpayload={your json file contains all the request} \ -Dapi.serviceAccountPrivateKeyFile={service account private key file} \ -DrootUrl=https://www.googleapis.com/ \ -jar cloudsearch-uploader-{version}.jarpayload is the json file which contains the source Id and all the requests related to it. api.serviceAccountPrivateKeyFile is the file contains private key information. If it is not a json file then api.serviceAccountId is compulsory.
Optional command-line properties:
-DcontentUpload.requestTimeout=<seconds> -DcontentUpload.connectorName=customConnectorName -DcontentUpload.enableDebugging=falseOnly set enableDebugging to true if asked by Google to help with debugging.
Detailed schema of request json file can be found at UploadRequest
.
Public Method Summary
static void |
main(String[] args)
|
Inherited Method Summary
Public Methods
public static void main (String[] args)
Parameters
args |
---|
Throws
IOException | |
---|---|
GeneralSecurityException | |
InterruptedException |